@Test
  public void testHash() {
    UserPrincipal p1 = new UserPrincipal("FOO");
    UserPrincipal p2 = new UserPrincipal("FOO");

    assertEquals(p1.hashCode(), p1.hashCode());
    assertEquals(p1.hashCode(), p2.hashCode());
  }