@Override public boolean implies(Permission permission) {
    if (permission instanceof RuntimePermission && BLOCKED_RUNTIME_PERMISSIONS.contains(permission.getName())) {
      return false;
    }
    if (permission instanceof SecurityPermission && BLOCKED_SECURITY_PERMISSIONS.contains(permission.getName())) {
      return false;
    }
    return true;
  }
@Test
  public void rule_allows_permissions() {
    assertThat(rule.implies(allowedSecurity)).isTrue();
    assertThat(rule.implies(allowedRuntime)).isTrue();
  }