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