public NIOServerCnxnFactory factory() {
        return factory;
    }
@Test
    public void testFactory() {
        int arbitraryTestClients = 42;
        ZookeeperServerCnxnFactory zkcfNegative = new ZookeeperServerCnxnFactory(-42, arbitraryTestClients);
        int nextPort = zkcfNegative.port() + 1;
        ZookeeperServerCnxnFactory zkcfNext = new ZookeeperServerCnxnFactory(nextPort, arbitraryTestClients);
        assertEquals(zkcfNext.factory().getMaxClientCnxnsPerHost(), arbitraryTestClients);
    }