NcdcStationMetadataParser { public boolean parse(String record) { if (record.length() < 42) { return false; } String usaf = record.substring(0, 6); String wban = record.substring(7, 12); stationId = usaf + "-" + wban; stationName = record.substring(13, 42); try { Integer.parseInt(usaf); return true; } catch (NumberFormatException e) { return false; } }  boolean parse(String record); boolean parse(Text record); String getStationId(); String getStationName();  }
@Test public void parsesHeader() { assertThat(parser.parse("Integrated Surface Database Station History, November 2007"), is(false)); }