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