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