IntegerFreqMapSerialiser implements ToBytesSerialiser<IntegerFreqMap> { @Override public boolean canHandle(final Class clazz) { return IntegerFreqMap.class.equals(clazz); }  @Override boolean canHandle(final Class clazz); @Override byte[] serialise(final IntegerFreqMap map); @Override IntegerFreqMap deserialise(final byte[] bytes); @Override IntegerFreqMap 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 canSerialiseFreqMap() { assertTrue(serialiser.canHandle(IntegerFreqMap.class)); }