@Test
    public void shouldReadWriteEmptyBulkList() throws Exception {
        final String resourceName = "empty-bulklist";

        final BulkSet resource = findModelEntryObject(resourceName);
        final List fromStatic = read(readFromResource(resourceName), List.class);
        final List recycled = read(write(fromStatic, BulkSet.class, resourceName), List.class);
        assertEquals(fromStatic, recycled);
        // we no longer deserialize into BulkSets, needs the expanded list
        List expandedResource = new ArrayList<>();
        resource.spliterator().forEachRemaining(expandedResource::add);
        assertEquals(expandedResource, fromStatic);
        assertEquals(expandedResource, recycled);
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-util/src/test/java/org/apache/tinkerpop/gremlin/structure/io/AbstractTypedCompatibilityTest.java