public ClusterState getState() {
        LockGuard stateLock = getStateLock();
        return stateLock.isLocked() ? ClusterState.IN_TRANSITION : state;
    }
@Test
    public void test_defaultState() {
        assertEquals(ACTIVE, clusterStateManager.getState());
    }