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