}
}
@Test
public void testScanRecordVariantFilter() throws Exception {
IdGenerator idGenerator = new IdGeneratorImpl();
final Map<String, String> variantProperties = new HashMap<String, String>();
variantProperties.put("lang", "en");
variantProperties.put("branch", null);
RecordId recordId = idGenerator.newRecordId("foo");
RecordScan scan = new RecordScan();
scan.setRecordFilter(new RecordVariantFilter(recordId, variantProperties));
byte[] data = scanToBytes(scan);