ReservoirLongsUnionSerialiser implements ToBytesSerialiser<ReservoirLongsUnion> { @Override public boolean canHandle(final Class clazz) { return ReservoirLongsUnion.class.equals(clazz); }  @Override boolean canHandle(final Class clazz); @Override byte[] serialise(final ReservoirLongsUnion union); @Override ReservoirLongsUnion deserialise(final byte[] bytes); @Override ReservoirLongsUnion deserialiseEmpty(); @Override boolean preservesObjectOrdering(); @Override boolean isConsistent(); @Override boolean equals(final Object obj); @Override int hashCode();  }
@Test public void testCanHandleReservoirLongsUnion() { assertTrue(serialiser.canHandle(ReservoirLongsUnion.class)); assertFalse(serialiser.canHandle(String.class)); }