### Question:
FloatPropertyConverter extends AbstractPropertyConverter { @Override public Object convert(String value, Context context) { return Float.valueOf(value); }  @Override boolean supports(Class<?> type); @Override Object convert(String value, Context context);  }### Answer:
@Test public void testConvert() throws Exception { assertThat((Float) converter.convert( Float.toString(Float.NEGATIVE_INFINITY), null), is(equalTo(Float.NEGATIVE_INFINITY))); assertThat((Float) converter.convert( Float.toString(0.0f), null), is(equalTo(0.0f))); assertThat((Float) converter.convert( Float.toString((float) Math.E), null), is(equalTo((float) Math.E))); assertThat((Float) converter.convert( Float.toString((float) Math.PI), null), is(equalTo((float) Math.PI))); assertThat((Float) converter.convert( Float.toString(Float.NaN), null), is(equalTo(Float.NaN))); assertThat((Float) converter.convert( Float.toString(Float.POSITIVE_INFINITY), null), is(equalTo(Float.POSITIVE_INFINITY))); }