### Question:
ShortConverter implements AtlasConverter<Short> { @AtlasConversionInfo(sourceType = FieldType.SHORT, targetType = FieldType.BYTE, concerns = AtlasConversionConcern.RANGE) public Byte toByte(Short value) throws AtlasConversionException { if (value == null) { return null; } if (value >= Byte.MIN_VALUE && value <= Byte.MAX_VALUE) { return value.byteValue(); } throw new AtlasConversionException(new AtlasUnsupportedException( String.format("Short %s is greater than Byte.MAX_VALUE or less than Byte.MIN_VALUE", value))); }  @AtlasConversionInfo(sourceType = FieldType.SHORT, targetType = FieldType.DECIMAL) BigDecimal toBigDecimal(Short value); @AtlasConversionInfo(sourceType = FieldType.SHORT, targetType = FieldType.BIG_INTEGER) BigInteger toBigInteger(Short value); @AtlasConversionInfo(sourceType = FieldType.SHORT, targetType = FieldType.BOOLEAN, concerns = AtlasConversionConcern.CONVENTION) Boolean toBoolean(Short value); @AtlasConversionInfo(sourceType = FieldType.SHORT, targetType = FieldType.BYTE, concerns = AtlasConversionConcern.RANGE) Byte toByte(Short value); @AtlasConversionInfo(sourceType = FieldType.SHORT, targetType = FieldType.CHAR, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.CONVENTION }) Character toCharacter(Short value); @AtlasConversionInfo(sourceType = FieldType.SHORT, targetType = FieldType.DATE_TIME) Date toDate(Short value); @AtlasConversionInfo(sourceType = FieldType.SHORT, targetType = FieldType.DOUBLE) Double toDouble(Short value); @AtlasConversionInfo(sourceType = FieldType.SHORT, targetType = FieldType.FLOAT) Float toFloat(Short value); @AtlasConversionInfo(sourceType = FieldType.SHORT, targetType = FieldType.INTEGER) Integer toInteger(Short value); @AtlasConversionInfo(sourceType = FieldType.SHORT, targetType = FieldType.DATE) LocalDate toLocalDate(Short value); @AtlasConversionInfo(sourceType = FieldType.SHORT, targetType = FieldType.TIME) LocalTime toLocalTime(Short value); @AtlasConversionInfo(sourceType = FieldType.SHORT, targetType = FieldType.DATE_TIME) LocalDateTime toLocalDateTime(Short value); @AtlasConversionInfo(sourceType = FieldType.SHORT, targetType = FieldType.LONG) Long toLong(Short value); @AtlasConversionInfo(sourceType = FieldType.SHORT, targetType = FieldType.NUMBER) Number toNumber(Short value); @AtlasConversionInfo(sourceType = FieldType.SHORT, targetType = FieldType.SHORT) Short toShort(Short value); @AtlasConversionInfo(sourceType = FieldType.SHORT, targetType = FieldType.STRING) String toString(Short value); @AtlasConversionInfo(sourceType = FieldType.SHORT, targetType = FieldType.DATE_TIME_TZ) ZonedDateTime toZonedDateTime(Short value);  }### Answer:
@Test public void convertToByte() throws Exception { Short l = 0; Byte value = (byte) 0; assertEquals(value, converter.toByte(l)); }
@Test(expected = AtlasConversionException.class) public void convertToByteOutOfRange() throws Exception { converter.toByte(Short.MAX_VALUE); }
@Test public void convertToByteNull() throws Exception { assertNull(converter.toByte(null)); }