BigIntegerConverter implements ITypeConverter<BigInteger> { @Override public BigInteger convert(String value) { try { return new BigInteger(value); } catch(Exception e) { throw new RuntimeException(e); } } BigIntegerConverter(); @Override BigInteger convert(String value); @Override Type getTargetType(); @Override String toString();  }
@Test public void testConvert() throws Exception { BigInteger expected = new BigInteger("2"); BigInteger actual = new BigIntegerConverter().convert("2"); Assert.assertEquals(expected, actual); }