ElementIdSerialiser implements ToBytesSerialiser<ElementId> { @Override public boolean isConsistent() { return null != edgeIdSerialiser && null != entityIdSerialiser && edgeIdSerialiser.isConsistent() && entityIdSerialiser.isConsistent(); } ElementIdSerialiser();  ElementIdSerialiser(final Schema schema);  ElementIdSerialiser(final ToBytesSerialiser vertexSerialiser); @Override boolean canHandle(final Class clazz); @SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST", justification = "If an ElementId is not an EntityId it must be an EdgeId") @Override byte[] serialise(final ElementId elementId); byte[] serialise(final EntityId entityId); byte[] serialise(final EdgeId edgeId); byte[] serialiseVertex(final Object vertex); @Override ElementId deserialise(final byte[] bytes); @Override ElementId deserialiseEmpty(); @Override boolean preservesObjectOrdering(); @Override boolean isConsistent(); @Override boolean equals(final Object obj); @Override int hashCode();  }
@Test public void testIsConsistent() { assertEquals(true, serialiser.isConsistent()); }