@Test
public void testConstructor() {

  VideographerAuthenticationToken token =
      new VideographerAuthenticationToken("127.0.0.1", mock(SecurityLogger.class));
  assertThat(token.getPrincipal(), is(instanceOf(VideographerPrincipal.class)));
  assertThat(
      token.getCredentials(), is(VideographerAuthenticationToken.VIDEOGRAPHER_CREDENTIALS));
  assertThat(token.getIpAddress(), is("127.0.0.1"));
}