### Question:
ShortConverter implements AtlasConverter<Short> { @AtlasConversionInfo(sourceType = FieldType.SHORT, targetType = FieldType.BOOLEAN, concerns = AtlasConversionConcern.CONVENTION) public Boolean toBoolean(Short value) { if (value == null) { return null; } return value == 0 ? Boolean.FALSE : Boolean.TRUE; }  @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 convertToBoolean() { Short f = 0; Short t = 1; Boolean b = converter.toBoolean(t); assertNotNull(b); assertTrue(b); b = converter.toBoolean(f); assertNotNull(b); assertFalse(b); }
@Test public void convertToBooleanNull() { Short l = null; Boolean b = converter.toBoolean(l); assertNull(b); }
@Test public void convertToBooleanNegative() { Short dt = -1; Boolean b = converter.toBoolean(dt); assertTrue(b); }