ToShortConverter implements ConverterWrapper<Short, Object> { @Override public Short convertToAttribute(Object value) { assert value != null; assert supportsAxiomValueType(value.getClass()); return ((Number) value).shortValue(); }  @Override Object convertToAxiomValue(Short value); @Override Short convertToAttribute(Object value); @Override boolean supportsAxiomValueType(Class<?> type);  }
@Test void toAttributeSupportsWideningIntegerConversion() { assertEquals(Short.valueOf((short) 11), converter.convertToAttribute(Byte.valueOf((byte) 11))); }
@Test void toAttributeSupportsIdentityConversion() { assertEquals(Short.valueOf((short) 11), converter.convertToAttribute(Short.valueOf((short) 11))); }