@Test(expectedExceptions = IllegalStateException.class)
public void testAddMalformedAuthenticator() {

    WebappAuthenticatorRepository repository = new WebappAuthenticatorRepository();
    WebappAuthenticator malformedAuthenticator = new MalformedAuthenticator();
    repository.addAuthenticator(malformedAuthenticator);
}