RoleConfigurationManager { public void readDashboardRolesConfig(@Observes @Initialized(ApplicationScoped.class) ServletContext sc) { readFromConfigurationRoles(); readFromInitParameter(sc); logger.debug("'{}' value : '{}'.", Constants.Options.DASHBOARD_ROLES, roles); }  void readDashboardRolesConfig(@Observes @Initialized(ApplicationScoped.class) ServletContext sc); Collection<String> getRoles();  }
@Test public void testReadDashboardRolesConfig() { System.out.println("readDashboardRolesConfig"); ServletContext sc = mock(ServletContext.class); doNothing().when(instance).readFromConfigurationRoles(); doNothing().when(instance).readFromInitParameter(sc); instance.readDashboardRolesConfig(sc); }