private static void assertNoPermission(User user, final AccessControlled item, final Permission p) {
        assertThat(
                "User '" + user + "' has the " + p.getId() + " permission for " + item
                        + ", but it should not according to security settings",
                hasPermission(user, item, p),
                equalTo(false));
    }
Provides asserts for {@link hudson.security.Permission} checks.
@author Oleg Nenashev
integrations/src/test/java/io/jenkins/plugins/casc/PermissionAssert.java