@Test
  public void testArguments() {
    UserPrincipal principal = new UserPrincipal("FOO");

    assertEquals("FOO", principal.getName());

    try {
      new UserPrincipal(null);
      fail("Should have thrown IllegalArgumentException");
    } catch (IllegalArgumentException ingore) {

    }
  }