### Question:
Converter { @NonNull public static Real parse(@NonNull String value) throws NumberFormatException { return parse(value, 10); }  @NonNull static Real parse(@NonNull String value); @NonNull static Real parse(@NonNull String value, int base);  }### Answer:
@Test(expected = NumberFormatException.class) public void testShouldNotParseInvalidDecNumber() throws Exception { Converter.parse("1A", 10); }
@Test public void testShouldParseValidHexNumber() throws Exception { assertEquals(26, Converter.parse("1A", 16).toLong()); }