StringSerialiser extends ToBytesViaStringDeserialiser<String> { @Override public boolean canHandle(final Class clazz) { return String.class.equals(clazz); } StringSerialiser(); @Override boolean canHandle(final Class clazz); @Override String deserialiseEmpty(); @Override boolean preservesObjectOrdering(); @Override boolean isConsistent(); @Override boolean equals(final Object obj); @Override int hashCode();  }
@Test public void cantSerialiseLongClass() { assertFalse(serialiser.canHandle(Long.class)); }
@Test public void canSerialiseStringClass() { assertTrue(serialiser.canHandle(String.class)); }