assertEquals(1, df.getSubfields().size());
}
public void testSetSubfield() {
DataField df = factory.newDataField("245", '1', '0');
Subfield sf1 = factory.newSubfield('a', "Summerland");
Subfield sf2 = factory.newSubfield('c', "Michael Chabon");
df.addSubfield(sf2);
df.addSubfield(0, sf1);
Subfield s = (Subfield) df.getSubfields().get(0);
assertEquals(2, df.getSubfields().size());
assertEquals('a', s.getCode());
}