@Test
    public void shouldReadWriteMultiTypeMap() throws Exception {
        final String resourceName = "var-type-map";

        final Map resource = findModelEntryObject(resourceName);
        final Map fromStatic = read(readFromResource(resourceName), Map.class);
        final Map recycled = read(write(fromStatic, Map.class, resourceName), Map.class);
        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