public void testStringBuffer() throws Exception {
    StringBuffer sb = new StringBuffer("test");
    StringBuffer sb2 = (StringBuffer) tc.decode(tc.encode(sb));
    assertEquals(sb.toString(), sb2.toString());
  }
Basic behavior validation for all transcoders that work with objects.
src/test/java/net/spy/memcached/transcoders/BaseTranscoderCase.java