### Question:
ParseLong implements IsParser<Long> { @Override public Long parse(Object o, Field field) { if (isValid(o)) { Long l; int ind = o.toString().indexOf("."); if (ind != -1) { o = o.toString().substring(0, ind); } l = Long.valueOf(o.toString()); return l; } return null; }  @Override Long parse(Object o, Field field); @Override void setCell(Long o, Cell cell, Field field);  }### Answer:
@Test public void parse() throws Exception { Long actual = parseLong.parse(null, null); assertEquals(null, actual); actual = parseLong.parse(expected, null); assertEquals(Double.valueOf(expected).longValue(), actual, 0); }