You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2015/06/01 20:20:55 UTC

[1/4] incubator-tinkerpop git commit: Minor adjustments to javadoc.

Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/master 15d8da0e7 -> 1dd487c20


Minor adjustments to javadoc.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/5ffdc7e3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/5ffdc7e3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/5ffdc7e3

Branch: refs/heads/master
Commit: 5ffdc7e34b1e1fbe0bba17876a83085b4d1351cc
Parents: 15d8da0
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Mon Jun 1 12:59:25 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Mon Jun 1 12:59:25 2015 -0400

----------------------------------------------------------------------
 .../tinkerpop/gremlin/structure/Vertex.java     | 25 +++++++++++---------
 1 file changed, 14 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/5ffdc7e3/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/Vertex.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/Vertex.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/Vertex.java
index a26d1d8..7b0d2a5 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/Vertex.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/Vertex.java
@@ -57,8 +57,9 @@ public interface Vertex extends Element, Host {
     public Edge addEdge(final String label, final Vertex inVertex, final Object... keyValues);
 
     /**
-     * Get the {@link VertexProperty} for the provided key. If the property does not exist, return {@link VertexProperty#empty}.
-     * If there are more than one verte properties for the provided key, then throw {@link Vertex.Exceptions#multiplePropertiesExistForProvidedKey}.
+     * Get the {@link VertexProperty} for the provided key. If the property does not exist, return
+     * {@link VertexProperty#empty}. If there are more than one vertex properties for the provided
+     * key, then throw {@link Vertex.Exceptions#multiplePropertiesExistForProvidedKey}.
      *
      * @param key the key of the vertex property to get
      * @param <V> the expected type of the vertex property value
@@ -94,9 +95,10 @@ public interface Vertex extends Element, Host {
     /**
      * Set the provided key to the provided value using default {@link VertexProperty.Cardinality} for that key.
      * The default cardinality can be vendor defined and is usually tied to the graph schema.
-     * The default implementation of this method determines the cardinality {@code graph().features().vertex().getCardinality(key)}.
-     * The provided key/values are the properties of the newly created {@link VertexProperty}.
-     * These key/values must be provided in an even number where the odd numbered arguments are {@link String}.
+     * The default implementation of this method determines the cardinality
+     * {@code graph().features().vertex().getCardinality(key)}. The provided key/values are the properties of the
+     * newly created {@link VertexProperty}. These key/values must be provided in an even number where the odd
+     * numbered arguments are {@link String}.
      *
      * @param key       the key of the vertex property
      * @param value     The value of the vertex property
@@ -109,11 +111,11 @@ public interface Vertex extends Element, Host {
     }
 
     /**
-     * Create a new vertex property.
-     * If the cardinality is {@link VertexProperty.Cardinality#single}, then set the key to the value.
-     * If the cardinality is {@link VertexProperty.Cardinality#list}, then add a new value to the key.
-     * If the cardinality is {@link VertexProperty.Cardinality#set}, then only add a new value if that value doesn't already exist for the key.
-     * If the value already exists for the key, add the provided key value vertex property properties to it.
+     * Create a new vertex property. If the cardinality is {@link VertexProperty.Cardinality#single}, then set the key
+     * to the value. If the cardinality is {@link VertexProperty.Cardinality#list}, then add a new value to the key.
+     * If the cardinality is {@link VertexProperty.Cardinality#set}, then only add a new value if that value doesn't
+     * already exist for the key. If the value already exists for the key, add the provided key value vertex property
+     * properties to it.
      *
      * @param cardinality the desired cardinality of the property key
      * @param key         the key of the vertex property
@@ -137,7 +139,8 @@ public interface Vertex extends Element, Host {
      * Gets an {@link Iterator} of adjacent vertices.
      *
      * @param direction  The adjacency direction of the vertices to retrieve off this vertex
-     * @param edgeLabels The labels of the edges associated with the vertices to retrieve. If no labels are provided, then get all edges.
+     * @param edgeLabels The labels of the edges associated with the vertices to retrieve. If no labels are provided,
+     *                   then get all edges.
      * @return An iterator of vertices meeting the provided specification
      */
     public Iterator<Vertex> vertices(final Direction direction, final String... edgeLabels);


[3/4] incubator-tinkerpop git commit: Add test class for GraphMigrator.

Posted by sp...@apache.org.
Add test class for GraphMigrator.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/27e52277
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/27e52277
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/27e52277

Branch: refs/heads/master
Commit: 27e522779741b19c2c5967dac9f25d48b79c8cb5
Parents: d096ac2
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Mon Jun 1 13:59:23 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Mon Jun 1 13:59:23 2015 -0400

----------------------------------------------------------------------
 .../gremlin/structure/io/GraphMigrator.java     |  3 ++
 .../gremlin/structure/io/GraphMigratorTest.java | 32 ++++++++++++++++++++
 2 files changed, 35 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/27e52277/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/GraphMigrator.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/GraphMigrator.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/GraphMigrator.java
index 641df3b..b2549e6 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/GraphMigrator.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/GraphMigrator.java
@@ -36,6 +36,9 @@ import static org.apache.tinkerpop.gremlin.structure.io.IoCore.gryo;
  * @author Stephen Mallette (http://stephen.genoprime.com)
  */
 public final class GraphMigrator {
+
+    private GraphMigrator() {}
+
     /**
      * Use Gryo to pipe the data from one graph to another graph.  Uses readers and writers generated from each
      * {@link Graph} via the {@link Graph#io(Io.Builder)} method.

http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/27e52277/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/structure/io/GraphMigratorTest.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/structure/io/GraphMigratorTest.java b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/structure/io/GraphMigratorTest.java
new file mode 100644
index 0000000..0b4a912
--- /dev/null
+++ b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/structure/io/GraphMigratorTest.java
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tinkerpop.gremlin.structure.io;
+
+import org.apache.tinkerpop.gremlin.TestHelper;
+import org.junit.Test;
+
+/**
+ * @author Stephen Mallette (http://stephen.genoprime.com)
+ */
+public class GraphMigratorTest {
+    @Test
+    public void shouldBeUtilityClass() throws Exception {
+        TestHelper.assertIsUtilityClass(GraphMigrator.class);
+    }
+}


[4/4] incubator-tinkerpop git commit: Finalize a bunch of GraphML IO classes.

Posted by sp...@apache.org.
Finalize a bunch of GraphML IO classes.

Can't think of how/why someone would really extend these so better that they are final.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/1dd487c2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/1dd487c2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/1dd487c2

Branch: refs/heads/master
Commit: 1dd487c207e481165def46366d53443fd9b273c0
Parents: 27e5227
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Mon Jun 1 14:19:57 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Mon Jun 1 14:19:57 2015 -0400

----------------------------------------------------------------------
 .../tinkerpop/gremlin/structure/io/graphml/GraphMLIo.java     | 6 +++---
 .../tinkerpop/gremlin/structure/io/graphml/GraphMLMapper.java | 6 ++++--
 .../tinkerpop/gremlin/structure/io/graphml/GraphMLReader.java | 2 +-
 .../tinkerpop/gremlin/structure/io/graphml/GraphMLTokens.java | 4 +++-
 .../tinkerpop/gremlin/structure/io/graphml/GraphMLWriter.java | 2 +-
 .../gremlin/structure/io/graphml/GraphMLWriterHelper.java     | 7 +++++--
 6 files changed, 17 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/1dd487c2/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLIo.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLIo.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLIo.java
index e334b67..e8117e7 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLIo.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLIo.java
@@ -36,10 +36,10 @@ import java.io.OutputStream;
  *
  * @author Stephen Mallette (http://stephen.genoprime.com)
  */
-public class GraphMLIo implements Io<GraphMLReader.Builder, GraphMLWriter.Builder, GraphMLMapper.Builder> {
+public final class GraphMLIo implements Io<GraphMLReader.Builder, GraphMLWriter.Builder, GraphMLMapper.Builder> {
     private final Graph graph;
 
-    public GraphMLIo(final Graph graph) {
+    private GraphMLIo(final Graph graph) {
         this.graph = graph;
     }
 
@@ -91,7 +91,7 @@ public class GraphMLIo implements Io<GraphMLReader.Builder, GraphMLWriter.Builde
         return new Builder();
     }
 
-    public static class Builder implements Io.Builder<GraphMLIo> {
+    public final static class Builder implements Io.Builder<GraphMLIo> {
 
         private Graph graph;
 

http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/1dd487c2/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLMapper.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLMapper.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLMapper.java
index 6d37c2e..8dc7070 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLMapper.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLMapper.java
@@ -28,7 +28,9 @@ import org.apache.tinkerpop.gremlin.structure.io.Mapper;
  *
  * @author Stephen Mallette (http://stephen.genoprime.com)
  */
-public class GraphMLMapper implements Mapper<Object> {
+public final class GraphMLMapper implements Mapper<Object> {
+    private GraphMLMapper() {}
+
     @Override
     public Object createMapper() {
         throw new UnsupportedOperationException("GraphML does not have an object mapper - it is a format for full Graph serialization");
@@ -38,7 +40,7 @@ public class GraphMLMapper implements Mapper<Object> {
         return new Builder();
     }
 
-    public static class Builder implements Mapper.Builder<Builder> {
+    public final static class Builder implements Mapper.Builder<Builder> {
         @Override
         public Builder addRegistry(final IoRegistry registry) {
             throw new UnsupportedOperationException("GraphML does not accept custom serializers - it is a format for full Graph serialization");

http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/1dd487c2/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLReader.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLReader.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLReader.java
index ca6f76d..d2fdb39 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLReader.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLReader.java
@@ -55,7 +55,7 @@ import java.util.stream.Stream;
  * @author Joshua Shinavier (http://fortytwo.net)
  * @author Stephen Mallette (http://stephen.genoprime.com)
  */
-public class GraphMLReader implements GraphReader {
+public final class GraphMLReader implements GraphReader {
     private final XMLInputFactory inputFactory = XMLInputFactory.newInstance();
 
     private final String edgeLabelKey;

http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/1dd487c2/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLTokens.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLTokens.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLTokens.java
index 8ab4297..921a10f 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLTokens.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLTokens.java
@@ -24,7 +24,9 @@ package org.apache.tinkerpop.gremlin.structure.io.graphml;
  * @author Marko A. Rodriguez (http://markorodriguez.com)
  * @author Stephen Mallette (http://stephen.genoprime.com)
  */
-class GraphMLTokens {
+final class GraphMLTokens {
+    private GraphMLTokens() {}
+
     public static final String XML_SCHEMA_NAMESPACE_TAG = "xsi";
     public static final String DEFAULT_GRAPHML_SCHEMA_LOCATION = "http://graphml.graphdrawing.org/xmlns/1.1/graphml.xsd";
     public static final String XML_SCHEMA_LOCATION_ATTRIBUTE = "schemaLocation";

http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/1dd487c2/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLWriter.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLWriter.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLWriter.java
index 5ff950b..e2a0952 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLWriter.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLWriter.java
@@ -56,7 +56,7 @@ import java.util.Optional;
  * @author Joshua Shinavier (http://fortytwo.net)
  * @author Stephen Mallette (http://stephen.genoprime.com)
  */
-public class GraphMLWriter implements GraphWriter {
+public final class GraphMLWriter implements GraphWriter {
     private final XMLOutputFactory inputFactory = XMLOutputFactory.newInstance();
     private boolean normalize = false;
 

http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/1dd487c2/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLWriterHelper.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLWriterHelper.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLWriterHelper.java
index cedb302..60ece3d 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLWriterHelper.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLWriterHelper.java
@@ -24,9 +24,12 @@ import javax.xml.stream.XMLStreamWriter;
 import java.util.Stack;
 
 /**
- * A wrapper for the IndentingXMLStreamWriter class by Kohsuke Kawaguchi
+ * A wrapper for the different {@code XMLStreamWriter} implementations.
  */
-class GraphMLWriterHelper {
+final class GraphMLWriterHelper {
+
+    private GraphMLWriterHelper() {}
+
     /**
      * @author Tijs Rademakers
      */


[2/4] incubator-tinkerpop git commit: Add test for IoCore

Posted by sp...@apache.org.
Add test for IoCore


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/d096ac2f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/d096ac2f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/d096ac2f

Branch: refs/heads/master
Commit: d096ac2faf713bd7beed776f2417d3f672a99186
Parents: 5ffdc7e
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Mon Jun 1 13:13:35 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Mon Jun 1 13:13:35 2015 -0400

----------------------------------------------------------------------
 .../tinkerpop/gremlin/structure/io/IoCore.java  |  3 ++
 .../gremlin/structure/io/IoCoreTest.java        | 53 ++++++++++++++++++++
 2 files changed, 56 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/d096ac2f/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoCore.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoCore.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoCore.java
index 993124e..00af37e 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoCore.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoCore.java
@@ -29,6 +29,9 @@ import org.apache.tinkerpop.gremlin.structure.io.gryo.GryoIo;
  * @author Stephen Mallette (http://stephen.genoprime.com)
  */
 public final class IoCore {
+
+    private IoCore() {}
+
     public static Io.Builder<GraphMLIo> graphml() {
         return GraphMLIo.build();
     }

http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/d096ac2f/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/structure/io/IoCoreTest.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/structure/io/IoCoreTest.java b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/structure/io/IoCoreTest.java
new file mode 100644
index 0000000..235942d
--- /dev/null
+++ b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/structure/io/IoCoreTest.java
@@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tinkerpop.gremlin.structure.io;
+
+import org.apache.tinkerpop.gremlin.TestHelper;
+import org.apache.tinkerpop.gremlin.structure.io.graphml.GraphMLIo;
+import org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONIo;
+import org.apache.tinkerpop.gremlin.structure.io.gryo.GryoIo;
+import org.junit.Test;
+
+import static org.hamcrest.CoreMatchers.instanceOf;
+import static org.hamcrest.MatcherAssert.assertThat;
+
+/**
+ * @author Stephen Mallette (http://stephen.genoprime.com)
+ */
+public class IoCoreTest {
+    @Test
+    public void shouldBeUtilityClass() throws Exception {
+        TestHelper.assertIsUtilityClass(IoCore.class);
+    }
+
+    @Test
+    public void shouldCreateAnIoBuilderforGraphML() {
+        assertThat(IoCore.graphml(), instanceOf(GraphMLIo.Builder.class));
+    }
+
+    @Test
+    public void shouldCreateAnIoBuilderforGraphSON() {
+        assertThat(IoCore.graphson(), instanceOf(GraphSONIo.Builder.class));
+    }
+
+    @Test
+    public void shouldCreateAnIoBuilderforGryo() {
+        assertThat(IoCore.gryo(), instanceOf(GryoIo.Builder.class));
+    }
+}