TreeSetStringSerialiser extends ToBytesViaStringDeserialiser<TreeSet<String>> { @Override public TreeSet<String> deserialiseEmpty() { return new TreeSet<>(); } TreeSetStringSerialiser(); @Override boolean canHandle(final Class clazz); @Override TreeSet<String> deserialiseString(final String value); @Override TreeSet<String> deserialiseEmpty(); @Override boolean preservesObjectOrdering(); @Override boolean isConsistent(); @Override boolean equals(final Object obj); @Override int hashCode();  }
@Test @Override public void shouldDeserialiseEmpty() throws SerialisationException { final TreeSet<String> tree = serialiser.deserialiseEmpty(); assertNotNull(tree); assertTrue(tree.isEmpty()); }