CSVRecord implements Serializable, Iterable<String> { public boolean isConsistent() { return mapping == null ? true : mapping.size() == 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 testIsConsistent() { assertTrue(record.isConsistent()); assertTrue(recordWithHeader.isConsistent()); header.put("fourth", Integer.valueOf(4)); assertFalse(recordWithHeader.isConsistent()); }