original.rewind();
ByteBuffer decompressed = null;
try {
ByteBuffer compressed = customCodec.compress(original);
compressed.rewind();
decompressed = customCodec.decompress(compressed);
} catch (IOException e) {
e.printStackTrace();
}
assertEquals(testString, new String(decompressed.array()));