### Question:
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DOUBLE) public Double toDouble(Float value) { if (value == null) { return null; } return value.doubleValue(); }  @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DECIMAL) BigDecimal toBigDecimal(Float value); @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BIG_INTEGER, concerns = AtlasConversionConcern.FRACTIONAL_PART) BigInteger toBigInteger(Float value); @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BOOLEAN, concerns = { AtlasConversionConcern.CONVENTION }) Boolean toBoolean(Float value); @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE }) Byte toByte(Float value); @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.CHAR, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.CONVENTION }) Character toCharacter(Float value); @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DATE, concerns = {AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART}) Date toDate(Float value); @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DOUBLE) Double toDouble(Float value); @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.FLOAT) Float toFloat(Float value); @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.INTEGER, concerns = AtlasConversionConcern.RANGE) Integer toInteger(Float value); @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DATE, concerns = {AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART}) LocalDate toLocalDate(Float value); @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.TIME, concerns = {AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART}) LocalTime toLocalTime(Float value); @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DATE_TIME, concerns = {AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART}) LocalDateTime toLocalDateTime(Float value); @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.LONG, concerns = AtlasConversionConcern.RANGE) Long toLong(Float value); @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.NUMBER) Number toNumber(Float value); @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.SHORT, concerns = AtlasConversionConcern.RANGE) Short toShort(Float value); @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.STRING) String toString(Float value); @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DATE_TIME_TZ, concerns = {AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART}) ZonedDateTime toZonedDateTime(Float value);  }### Answer:
@Test public void convertToDouble() { Float df = 0.0f; Double d = converter.toDouble(df); assertNotNull(d); assertNotSame(df, d); assertEquals(0.0, d.floatValue(), 0.0); df = 1.0f; d = converter.toDouble(df); assertNotNull(d); assertNotSame(df, d); assertEquals(1.0, d.floatValue(), 0.0); }
@Test public void convertToDoubleNull() { Float df = null; Double d = converter.toDouble(df); assertNull(d); }