JavaSerialiser implements ToBytesSerialiser<Object> { @Override public boolean canHandle(final Class clazz) { return SERIALISABLE.isAssignableFrom(clazz); }  @Override byte[] serialise(final Object object); @Override Object deserialise(final byte[] allBytes, final int offset, final int length); @Override Object deserialise(final byte[] bytes); @Override Object deserialiseEmpty(); @Override boolean canHandle(final Class clazz); @Override boolean preservesObjectOrdering(); @Override boolean isConsistent(); @Override boolean equals(final Object obj); @Override int hashCode();  }
@Test public void canHandleUnParameterisedDAO() { assertTrue(serialiser.canHandle(SimpleTestObject.class)); }
@Test public void canHandleParameterisedDAO() { assertTrue(serialiser.canHandle(ParameterisedTestObject.class)); }