@Test
public void testReadNumberFromValue() throws Exception {

    Number[] numbers = Stream.of(1, 2.0, ((long) Integer.MAX_VALUE) + 4,
            ((Float) Float.MAX_VALUE).doubleValue() + 1.0D)
            .toArray(Number[]::new);
    for (Number number : numbers) {
        assertSame("same number", number, converter().readNumberFromValue("", number));
        assertEquals("toString equals", number, converter().readNumberFromValue("", number.toString()));
    }
    assertNull("should be null", converter().readNumberFromValue("", Boolean.TRUE));
}