@Test
    public void shouldReadBigIntegerAsString() throws Exception {
        assumeThat(version, not(startsWith("v1")));

        final BigInteger o = new BigInteger("123456789987654321123456789987654321");
        if (version.startsWith("v4")) {
            assertEquals(o, mapper.readValue("{\"@type\": \"g:BigInteger\", \"@value\": \"123456789987654321123456789987654321\"}", Object.class));
        } else {
            assertEquals(o, mapper.readValue("{\"@type\": \"gx:BigInteger\", \"@value\": \"123456789987654321123456789987654321\"}", Object.class));
        }
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONMapperEmbeddedTypeTest.java