@Test
public void testGetAuthenticatorInstances() throws Exception {

  when(config.getAuthenticators()).thenReturn(
      ImmutableList.of(PassAuthenticator.class, FailAuthenticator.class));
  List<Authenticator> authenticators = Lists.newArrayList(auth.getAuthenticatorInstances());
  assertEquals(2, authenticators.size());
  assertTrue(authenticators.get(0) instanceof PassAuthenticator);
  assertTrue(authenticators.get(1) instanceof FailAuthenticator);
}