public void testByteArray() throws Exception {
    byte[] a = { 'a', 'b', 'c' };
    CachedData cd = tc.encode(a);
    assertTrue(Arrays.equals(a, cd.getData()));
    assertTrue(Arrays.equals(a, (byte[]) tc.decode(cd)));
  }
Basic behavior validation for all transcoders that work with objects.
src/test/java/net/spy/memcached/transcoders/BaseTranscoderCase.java