@Test
public void testInit() throws Exception {

  PseudoAuthenticationHandler handler = new PseudoAuthenticationHandler();
  try {
    Properties props = new Properties();
    props.setProperty(PseudoAuthenticationHandler.ANONYMOUS_ALLOWED, "false");
    handler.init(props);
    Assert.assertEquals(false, handler.getAcceptAnonymous());
  } finally {
    handler.destroy();
  }
}