@Test public void whenOpHasPermission() { Rank op = new Rank(true, "name", "pref", Collections.emptySet()); assertTrue(op.hasPermission("ANY")); }
public boolean hasPermission(String permission) { return operator || permissions.contains(permission) || child != null && child.hasPermission(permission); }
Rank { public boolean hasPermission(String permission) { return operator || permissions.contains(permission) || child != null && child.hasPermission(permission); } }
Rank { public boolean hasPermission(String permission) { return operator || permissions.contains(permission) || child != null && child.hasPermission(permission); }  }
Rank { public boolean hasPermission(String permission) { return operator || permissions.contains(permission) || child != null && child.hasPermission(permission); }  boolean hasPermission(String permission); }
Rank { public boolean hasPermission(String permission) { return operator || permissions.contains(permission) || child != null && child.hasPermission(permission); }  boolean hasPermission(String permission);  }