public void testNullFactoryConstructor() throws Exception {
    try {
      client =
          new MemcachedClient(null, AddrUtil.getAddresses(TestConfig.IPV4_ADDR
              + ":" + TestConfig.PORT_NUMBER));
      fail("Expected null pointer exception, got " + client);
    } catch (NullPointerException e) {
      assertEquals("Connection factory required", e.getMessage());
    }
  }
Test the various memcached client constructors.
src/test/java/net/spy/memcached/MemcachedClientConstructorTest.java