### Question:
InstancePool { public int size() { return instances.length; } InstancePool(int size, Supplier<HazelcastInstance> instanceSupplier); int size(); HazelcastInstance get(); void prestartAll(); void prestart(int numInstances);  }### Answer:
@Test public void testSize() { final int size = 4; final InstancePool pool = new InstancePool(size, () -> null); assertEquals(size, pool.size()); }