private HazelcastInstanceFactory() {
    }
@Test
    public void testTestHazelcastInstanceFactory() {
        TestHazelcastInstanceFactory instanceFactory = new TestHazelcastInstanceFactory();
        try {
            final HazelcastInstance instance1 = instanceFactory.newHazelcastInstance();
            final HazelcastInstance instance2 = instanceFactory.newHazelcastInstance();
            final HazelcastInstance instance3 = instanceFactory.newHazelcastInstance();

            assertClusterSizeEventually(3, instance1, instance2, instance3);
        } finally {
            instanceFactory.terminateAll();
        }
    }