fieldList = record.getVariableFields(fields);
assertEquals(3, fieldList.size());
}
public void testFind() throws Exception {
VariableField field = record.getVariableField("245");
assertEquals(true, field.find("Summerland"));
assertEquals(true, field.find("Sum*erland"));
assertEquals(true, field.find("[Cc]habo[a-z]"));
field = record.getVariableField("008");
assertEquals(true, field.find("eng"));
List result = record.find("Summerland");
assertEquals(1, result.size());
field = (VariableField) result.get(0);
assertEquals("245", field.getTag());
result = record.find("Chabon");
assertEquals(2, result.size());
result = record.find("100", "Chabon");