TrustedUserPrincipal extends Principal { @Override public boolean hasFullAccess() { return true; } TrustedUserPrincipal(String username); String getUsername(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String getType(); @Override String getName(); @Override boolean hasFullAccess(); @Override boolean canAccess(Object target, SubResource subResource, Access access);  }
@Test public void hasFullAccess() { assertTrue(principal.hasFullAccess()); }