DefaultSecurityPrincipal implements Principal { @Override public String getName() { return name; } DefaultSecurityPrincipal(String name); @Override String getName();  }
@Test void testGetName() { DefaultSecurityPrincipal principal = new DefaultSecurityPrincipal("user"); assertEquals("user", principal.getName()); }