IntegerSerialiser extends ToBytesViaStringDeserialiser<Integer> { @Override public boolean canHandle(final Class clazz) { return Integer.class.equals(clazz); } IntegerSerialiser(); @Override boolean canHandle(final Class clazz); @Override Integer deserialiseString(final String value); @Override Integer deserialiseEmpty(); @Override boolean preservesObjectOrdering(); @Override boolean isConsistent(); @Override boolean equals(final Object obj); @Override int hashCode();  }
@Test public void cantSerialiseStringClass() { assertFalse(serialiser.canHandle(String.class)); }
@Test public void canSerialiseIntegerClass() { assertTrue(serialiser.canHandle(Integer.class)); }