EntityIdSerialiser implements ToBytesSerialiser<EntityId> { @Override public boolean canHandle(final Class clazz) { return EntityId.class.isAssignableFrom(clazz); } EntityIdSerialiser();  EntityIdSerialiser(final Schema schema);  EntityIdSerialiser(final ToBytesSerialiser vertexSerialiser); @Override boolean canHandle(final Class clazz); @Override byte[] serialise(final EntityId entityId); byte[] serialiseVertex(final Object vertex); @Override EntityId deserialise(final byte[] bytes); @Override EntityId 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 testCanSerialiseEntityIdClass() throws SerialisationException { assertTrue(serialiser.canHandle(EntityId.class)); }