### Question:
ShortValueConverter extends AbstractValueConverter<Short> { @Override public Short convertValue(Value value, Thing thing, Class<? extends Short> desiredType) throws ValueConversionException { try { return Short.parseShort(value.stringValue()); } catch (NumberFormatException e) { throw new ValueConversionException("Issue getting short value from statement", e); } } ShortValueConverter(); @Override Short convertValue(Value value, Thing thing, Class<? extends Short> desiredType); @Override Value convertType(Short type, Thing thing);  }### Answer:
@Test public void testEmpty() { try { valueConverter.convertValue(valueFactory.createLiteral(""), null, type); TestCase.fail("Empty string should cause ValueConversionException"); } catch (ValueConversionException e) { TestCase.assertTrue("Cause of error should have been NumberFormatException", e.getCause() instanceof NumberFormatException); } }