@Test
public void shouldIgnoreAccessControlIfTheAccessControlDisabledPropertyIsTrue() throws Exception {

    System.setProperty(ACCESS_CONTROL_DISABLED_PROPERTY, "true");
    final Optional<AccessControlViolation> accessControlViolation =
            accessControlService.checkAccessControl("command", jsonEnvelope);
    assertThat(accessControlViolation.isPresent(), is(false));
    verifyZeroInteractions(policyEvaluator);
    verify(logger).trace("Skipping access control due to configuration");
}