### Question:
AtonTypeDecoder { public static String getAtonType(BigInteger ts) { if (ts == null) return null; else return getAtonType(ts.intValue()); } private  AtonTypeDecoder(); static String getAtonType(BigInteger ts); static String getAtonType(Integer ts);  }### Answer:
@Test public void testAll() { assertEquals("Not specified", getAtonType(0)); assertEquals("unknown code 100", getAtonType(100)); assertEquals("Fixed - Light, without sectors", getAtonType(5)); assertEquals("Fixed - Beacon, Cardinal E", getAtonType(10)); assertEquals("Floating - Light Vessel, LANBY, Rigs", getAtonType(31)); assertEquals("Fixed - Beacon, Isolated danger", getAtonType(17)); assertEquals("Fixed - Beacon, Special mark", getAtonType(19)); assertEquals("Floating - Cardinal Mark N", getAtonType(20)); assertEquals("Floating - Cardinal Mark E", getAtonType(21)); }
@Test public void testNull() { assertNull(getAtonType((Integer) null)); }
@Test public void testBigIntegerNull() { assertNull(getAtonType((BigInteger) null)); }
@Test public void testBigIntegerNonNull() { assertEquals("Not specified", getAtonType(BigInteger.valueOf(0))); }