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