@Test
public void testParseFloat() {

    assertThat(new ParserHelper("0", 0).parseFloat(), is(0.0f));
    assertThat(new ParserHelper("0.09", 0).parseFloat(), is(0.09F));
    assertThat(new ParserHelper("0.0e3", 0).parseFloat(), is(0.0F));
    assertThat(new ParserHelper("0.01", 0).parseFloat(), is(0.01F));
    assertThat(new ParserHelper("foo", 0).parseFloat(), is(Float.NaN));
}