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