@Test
    public void shouldCoerceToConvertToLong() {
        final Integer value = 42;
        assertEquals(Long.valueOf(42L), NumberHelper.coerceTo(value, Long.class));
    }
@author Daniel Kuppitz (http://gremlin.guru)
gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/util/NumberHelperTest.java