IeShortFloatConverter extends CustomConverter<IeShortFloat, FloatMeasurementElementDto> { @Override public FloatMeasurementElementDto convert(final IeShortFloat source, final Type<? extends FloatMeasurementElementDto> destinationType, final MappingContext mappingContext) { return new FloatMeasurementElementDto(source.getValue()); }  @Override FloatMeasurementElementDto convert(final IeShortFloat source,
            final Type<? extends FloatMeasurementElementDto> destinationType, final MappingContext mappingContext);  }
@Test public void shouldConvertIeShortFloatToFloatMeasurementElementDto() { final float value = 10.0f; final FloatMeasurementElementDto expected = new FloatMeasurementElementDto(value); final IeShortFloat source = new IeShortFloat(value); final FloatMeasurementElementDto actual = this.converter.convert(source, null, null); assertThat(actual).isEqualTo(expected); }