### Question:
OktaLogoutHandler implements AuthenticationHandler { @Activate protected void activate(Map<String, Object> props) { String oktaHostName = PropertiesUtil.toString(props.get(PROP_OKTA_HOST_NAME), null); if (oktaHostName == null) { throw new IllegalArgumentException("Okta Host Name must be provided"); } String fromUri = PropertiesUtil.toString(props.get(PROP_FROM_URI), null); StringBuilder builder = new StringBuilder("https: builder.append(oktaHostName); builder.append("/login/signout"); if (fromUri != null) { builder.append("?fromURI=").append(fromUri); } this.redirectLocation = builder.toString(); }  @Override AuthenticationInfo extractCredentials(HttpServletRequest request, HttpServletResponse response); @Override boolean requestCredentials(HttpServletRequest request, HttpServletResponse response); @Override void dropCredentials(HttpServletRequest request, HttpServletResponse response);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void activateWithoutHostThrowsIllegalArgumentException() { underTest.activate(Collections.emptyMap()); }