try { Float f = NumberUtils.createFloat(""); fail("createFloat(empty) failed"); } catch (NumberFormatException ex) {  }
this.testCreateFloatFailure(""); this.testCreateFloatFailure(" "); this.testCreateFloatFailure("\b\t\n\f\r");  this.testCreateFloatFailure("\u00A0\uFEFF\u000B\u000C\u001C\u001D\u001E\u001F");
    public void testCreateFloat() {        assertEquals("createFloat(String) failed", new Float("1234.5"), NumberUtils.createFloat("1234.5"));        assertEquals("createFloat(null) failed", null, NumberUtils.createFloat(null));        try {            Float f = NumberUtils.createFloat("");            fail("createFloat(empty) failed");        } catch (NumberFormatException ex) {            // empty        }    }