@Test
    public void shouldCoerceToRetainOriginalTypeIfCannotFitInFloat() {
        final Double value = Double.MAX_VALUE;
        assertEquals(value, NumberHelper.coerceTo(value, Float.class));
    }
@author Daniel Kuppitz (http://gremlin.guru)
gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/util/NumberHelperTest.java