EdgeIdSerialiser implements ToBytesSerialiser<EdgeId> { @Override public boolean canHandle(final Class clazz) { return EdgeId.class.isAssignableFrom(clazz); } EdgeIdSerialiser();  EdgeIdSerialiser(final Schema schema);  EdgeIdSerialiser(final ToBytesSerialiser vertexSerialiser); @Override boolean canHandle(final Class clazz); @Override byte[] serialise(final EdgeId edgeId); @Override EdgeId deserialise(final byte[] bytes); @Override EdgeId deserialiseEmpty(); @Override boolean preservesObjectOrdering(); @Override boolean isConsistent(); @Override boolean equals(final Object obj); @Override int hashCode();  }
@Test public void testCantSerialiseIntegerClass() throws SerialisationException { assertFalse(serialiser.canHandle(Integer.class)); }
@Test public void testCanSerialiseEdgeIdClass() throws SerialisationException { assertTrue(serialiser.canHandle(EdgeId.class)); }