EdgeSerialiser extends PropertiesSerialiser<Edge> { @Override public boolean canHandle(final Class clazz) { return Edge.class.isAssignableFrom(clazz); } EdgeSerialiser();  EdgeSerialiser(final Schema schema); @Override void updateSchema(final Schema schema); @Override boolean canHandle(final Class clazz); @Override byte[] serialise(final Edge edge); @Override Edge deserialise(final byte[] bytes); @Override Edge deserialiseEmpty(); @Override boolean isConsistent();  }
@Test public void testCantSerialiseIntegerClass() throws SerialisationException { assertFalse(serialiser.canHandle(Integer.class)); }
@Test public void testCanSerialiseEdgeClass() throws SerialisationException { assertTrue(serialiser.canHandle(Edge.class)); }