public void testLongOverflow() {
    try {
      long b = tu.decodeLong(oversizeBytes);
      fail("Got " + b + " expected assertion.");
    } catch (AssertionError e) {
      // pass
    }
  }
Some test coverage for transcoder utils.
src/test/java/net/spy/memcached/transcoders/TranscoderUtilsTest.java