@Test
public void testGetPrincipalDomain() {

    Principal principal = SimplePrincipal.create("sports", "api",
            "creds", 0, new PrincipalAuthority());
    ResourceContext ctx = createResourceContext(principal);
    assertEquals(zms.getPrincipalDomain(ctx), "sports");
}