### Question:
ShortConverter implements AtlasConverter<Short> { @AtlasConversionInfo(sourceType = FieldType.SHORT, targetType = FieldType.CHAR, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.CONVENTION }) public Character toCharacter(Short value) throws AtlasConversionException { if (value == null) { return null; } if (value < Character.MIN_VALUE || value > Character.MAX_VALUE) { throw new AtlasConversionException(String .format("Short %s is greater than Character.MAX_VALUE or less than Character.MIN_VALUE", value)); } return Character.valueOf((char) value.intValue()); }  @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 convertToCharacter() throws Exception { Short shorty = new Short((short) 4); Character character = converter.toCharacter(shorty); assertNotNull(character); assertEquals(Character.valueOf((char) shorty.shortValue()), character); }
@Test public void convertToCharacterNull() throws Exception { Short s = null; Character c = converter.toCharacter(s); assertNull(c); }
@Test public void convertToCharacterMAX() throws Exception { Short s = Short.MAX_VALUE; Character c = converter.toCharacter(s); assertNotNull(c); assertEquals(Character.valueOf((char) s.shortValue()), c); }
@Test(expected = AtlasConversionException.class) public void convertToCharacterMIN() throws Exception { Short s = Short.MIN_VALUE; converter.toCharacter(s); }