@Test
    public void shouldPromoteDoubleToInfiniteForMul() {
        Number value = mul(Double.MAX_VALUE, 2F);
        assertTrue(value instanceof Double);
        assertTrue(Double.isInfinite(value.doubleValue()));
    }
@author Daniel Kuppitz (http://gremlin.guru)
gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/util/NumberHelperTest.java