private void assertLong(long l) {
    CachedData encoded = tc.encode(l);
    long decoded = (Long) tc.decode(encoded);
    assertEquals(l, decoded);
  }
Basic behavior validation for all transcoders that work with objects.
src/test/java/net/spy/memcached/transcoders/BaseTranscoderCase.java