public void testBinaryConnectionFactory() {
    (new BinaryConnectionFactory()).toString();
    (new BinaryConnectionFactory(10, 1000)).toString();
    (new BinaryConnectionFactory(100, 1000,
        DefaultHashAlgorithm.KETAMA_HASH)).toString();
  }
These tests test to make sure that we don't get null pointer
exceptions when calling toString methods on classes that have
custom toString() functions.
src/test/java/net/spy/memcached/ToStringTest.java