FreqMapSerialiser implements ToBytesSerialiser<FreqMap> { @Override public boolean canHandle(final Class clazz) { return FreqMap.class.equals(clazz); }  @Override byte[] serialise(final FreqMap map); @Override FreqMap deserialise(final byte[] bytes); @Override boolean canHandle(final Class clazz); @Override boolean preservesObjectOrdering(); @Override boolean isConsistent(); @Override FreqMap deserialiseEmpty(); @Override boolean equals(final Object obj); @Override int hashCode();  }
@Test public void cantSerialiseStringClass() { assertFalse(serialiser.canHandle(String.class)); }
@Test public void canSerialiseFreqMap() { assertTrue(serialiser.canHandle(FreqMap.class)); }