public boolean hasRequiredResourceManagers()
    {
        return currentResourceManagerCount >= resourceManagerMinCountActive;
    }
@Test
    public void testHasRequiredResourceManagers()
            throws InterruptedException
    {
        assertFalse(monitor.hasRequiredResourceManagers());
        for (int i = numResourceManagers.get(); i < DESIRED_RESOURCE_MANAGER_COUNT_ACTIVE; i++) {
            addResourceManager(nodeManager);
        }
        assertTrue(monitor.hasRequiredResourceManagers());
    }