}
void assertFilter(Filter expected, String filter) throws Exception {
filter = filter.substring(1, filter.length()-1);
Filter f = (Filter)
new Parser(new FESConfiguration()).parse(new ByteArrayInputStream(filter.getBytes()));
if (expected instanceof Id) {
Set s1 = new HashSet();
for (Identifier id: ((Id) expected).getIdentifiers()) {
s1.add(id.toString());
}