"xmlns:ns1='ns1' xmlns:ns='ns'",
Lists.newArrayList("recordType='ns1:typeA' variant='prop1=val1' field='ns:int=10' vtags='vtag1'"),
Collections.<String>emptyList()
);
LilyIndexerConf idxConf = LilyIndexerConfBuilder.build(new ByteArrayInputStream(conf.getBytes()), repository);
Record record1 = repository.getDefaultTable().recordBuilder()
.id("record", ImmutableMap.of("prop1", "val1"))
.recordType(new QName("ns1", "typeA"))
.field(new QName("ns", "int"), new Integer(10))
.build();
assertNotNull(idxConf.getRecordFilter().getIndexCase(Table.RECORD.name, record1));
Record record2 = repository.getDefaultTable().recordBuilder()
.id("record", ImmutableMap.of("prop1", "val1"))
.recordType(new QName("ns1", "typeA"))
.field(new QName("ns", "int"), new Integer(11))
.build();
assertNull(idxConf.getRecordFilter().getIndexCase(Table.RECORD.name, record2));
Record record3 = repository.getDefaultTable().recordBuilder()
.id("record", ImmutableMap.of("prop1", "val1"))
.recordType(new QName("ns1", "typeB"))
.field(new QName("ns", "int"), new Integer(10))
.build();
assertNull(idxConf.getRecordFilter().getIndexCase(Table.RECORD.name, record3));
Record record4 = repository.getDefaultTable().recordBuilder()
.id("record", ImmutableMap.of("prop1", "val2"))
.recordType(new QName("ns1", "typeA"))
.field(new QName("ns", "int"), new Integer(10))
.build();
assertNull(idxConf.getRecordFilter().getIndexCase(Table.RECORD.name, record4));
}