public boolean hasRequiredCoordinators()
    {
        return currentCoordinatorCount >= coordinatorMinCountActive;
    }
@Test
    public void testHasRequiredCoordinators()
            throws InterruptedException
    {
        assertFalse(monitor.hasRequiredCoordinators());
        for (int i = numResourceManagers.get(); i < DESIRED_COORDINATOR_COUNT_ACTIVE; i++) {
            addCoordinator(nodeManager);
        }
        assertTrue(monitor.hasRequiredCoordinators());
    }