@Test
    public void shouldReadWriteMaxNegativeDouble() throws Exception {
        final String resourceName = "neg-max-double";

        final Double resource = findModelEntryObject(resourceName);
        final Double fromStatic = read(readFromResource(resourceName), Double.class);
        final Double recycled = read(write(fromStatic, Double.class, resourceName), Double.class);
        assertNotSame(fromStatic, recycled);
        assertEquals(fromStatic, recycled);
        assertEquals(resource, fromStatic);
        assertEquals(resource, recycled);
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-util/src/test/java/org/apache/tinkerpop/gremlin/structure/io/AbstractTypedCompatibilityTest.java