@Test
public void testPrincipalNameValidationValid() {

    
    assertTrue(Validate.principalName("user:doe"));
    assertTrue(Validate.principalName("user:doe"));
    assertTrue(Validate.principalName("user:john.doe"));
    assertTrue(Validate.principalName("user.user:doe"));
    assertTrue(Validate.principalName("user.user:john.doe"));
    assertTrue(Validate.principalName("user:john_doe"));
    assertTrue(Validate.principalName("john-doe"));
    assertTrue(Validate.principalName("user:john-doe"));
}