@Override
    public SecurityModeState getState(ApplicationId appId) {
        return states.asJavaMap().getOrDefault(appId, new SecurityInfo(null, null)).getState();
    }
@Test
    public void testGetState() {
        assertEquals(SECURED, states.get(appId).getState());
    }