### Question:
IntegerConverter extends AbstractConverter { @Override protected Object convert(Object value) { if (value instanceof Number) { return ((Number)value).intValue(); } return super.convert(value); } IntegerConverter();   }### Answer:
@Test public void test() { Assert.assertEquals(100, converter.convert("100")); Assert.assertEquals(-100, converter.convert("-100")); Assert.assertEquals(1000000000, converter.convert("1000000000")); Assert.assertEquals(null, converter.convert("-")); Assert.assertEquals(null, converter.convert("abc")); Assert.assertEquals(null, converter.convert("100a")); Assert.assertEquals(5, converter.convert(5.5)); }