public void testEncodeStringNull() {
    try {
      ex.encodeString(null);
      fail("Expected an assertion error");
    } catch (NullPointerException e) {
      // pass
    }
  }
Base tests of the base serializing transcoder stuff.
src/test/java/net/spy/memcached/transcoders/BaseSerializingTranscoderTest.java