CSVRecord implements Serializable, Iterable<String> { public boolean isSet(final String name) { return isMapped(name) && mapping.get(name).intValue() < values.length; } CSVRecord(final String[] values, final Map<String, Integer> mapping,
            final String comment, final long recordNumber); String get(Enum<?> e); String get(final int i); String get(final String name); String getComment(); long getRecordNumber(); boolean isConsistent(); boolean isMapped(final String name); boolean isSet(final String name); Iterator<String> iterator(); int size(); @Override String toString();  }
@Test public void testIsSet() { assertFalse(record.isSet("first")); assertTrue(recordWithHeader.isSet("first")); assertFalse(recordWithHeader.isSet("fourth")); }