public static SecurityAdminService getSecurityService() {
        if (System.getSecurityManager() != null) {
            try {
                SecurityAdminService securityService = serviceDirectory.get(SecurityAdminService.class);
                if (securityService != null) {
                    return securityService;
                }
            } catch (ServiceNotFoundException e) {
                return null;
            }
        }
        return null;
    }
@Test
    public void testGetSecurityService() {
        assertNull(System.getSecurityManager());
        assertNotNull(service);
    }