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