InstantParser extends AbstractColumnParser<Instant> { @Override public boolean canParse(String s) { if (isMissing(s)) { return true; } try { parse(s); return true; } catch (RuntimeException e) { return false; } } InstantParser(ColumnType columnType); @Override boolean canParse(String s); @Override Instant parse(String value);  }
@Test public void canParse() { assertFalse(parser.canParse("foobar")); assertTrue(parser.canParse(Instant.now().toString())); }