@Test
    void testBritneyFilter() {
        tester.assertParsed("RANK (+(AND performernameall:britney performernameall:spears songnameall:toxic |SongConsumable:1 |country:us |collapsedrecord:1 |doctype:song) -|collapsecount:0) (AND metadata:britney metadata:spears metadata:toxic)",
                "((performernameall:britney AND performernameall:spears AND songnameall:toxic) RANK (metadata:britney AND metadata:spears AND metadata:toxic))",
                "+SongConsumable:1 +country:us +collapsedrecord:1  -collapsecount:0  +doctype:song",
                Query.Type.ADVANCED);

        tester.assertParsed("AND (+(AND (RANK (OR (AND performernameall:britney performernameall:spears songnameall:toxic) (AND performernameall:britney performernameall:spears songnameall:toxic)) (AND metadata:britney metadata:spears metadata:toxic)) |SongConsumable:1 |country:us |collapsedrecord:1) -|collapsecount:0) |doctype:song",
                "(((performernameall:britney AND performernameall:spears AND songnameall:toxic) OR (performernameall:britney AND performernameall:spears AND songnameall:toxic)) RANK (metadata:britney AND metadata:spears AND metadata:toxic)))",
                "+SongConsumable:1 +country:us +collapsedrecord:1  -collapsecount:0  +doctype:song",
                Query.Type.ADVANCED);
    }
Testing terminators containing control characters in conjunction with those control characters
container-search/src/test/java/com/yahoo/prelude/query/parser/test/ParseTestCase.java