### Question:
LongValueConverter implements ValueConverter<Long> { @Override public Long convert(String value) { return Long.valueOf(value); }  @Override Long convert(String value);  }### Answer:
@Test public void testLongValueConvertion() throws Exception { Long value = new LongValueConverter().convert("54"); assertEquals(Long.valueOf(54L), value); }
@Test(expected = NumberFormatException.class) public void testStringConvertionThrowsExceptio() throws Exception { new LongValueConverter().convert("abc"); }