RoaringBitmapSerialiser implements ToBytesSerialiser<RoaringBitmap> { @Override public RoaringBitmap deserialiseEmpty() { return new RoaringBitmap(); }  @Override boolean canHandle(final Class clazz); @Override byte[] serialise(final RoaringBitmap object); @Override RoaringBitmap deserialise(final byte[] allBytes, final int offset, final int length); @Override RoaringBitmap deserialise(final byte[] bytes); @Override boolean preservesObjectOrdering(); @Override boolean isConsistent(); @Override RoaringBitmap deserialiseEmpty(); @Override byte[] serialiseNull(); @Override boolean equals(final Object obj); @Override int hashCode();  }
@Test @Override public void shouldDeserialiseEmpty() throws SerialisationException { final RoaringBitmap value = serialiser.deserialiseEmpty(); assertEquals(new RoaringBitmap(), value); }