RBMBackedTimestampSetSerialiser implements ToBytesSerialiser<RBMBackedTimestampSet> { @Override public boolean canHandle(final Class clazz) { return RBMBackedTimestampSet.class.equals(clazz); }  @Override boolean canHandle(final Class clazz); @Override byte[] serialise(final RBMBackedTimestampSet rbmBackedTimestampSet); @Override RBMBackedTimestampSet deserialise(final byte[] allBytes, final int offset, final int length); @Override RBMBackedTimestampSet deserialise(final byte[] bytes); @Override RBMBackedTimestampSet deserialiseEmpty(); @Override boolean preservesObjectOrdering(); @Override boolean isConsistent(); @Override boolean equals(final Object obj); @Override int hashCode();  }
@Test public void testCanHandle() throws SerialisationException { assertTrue(serialiser.canHandle(RBMBackedTimestampSet.class)); assertFalse(serialiser.canHandle(String.class)); }