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