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