AllowAllPolicyEvaluator implements PolicyEvaluator { @Override public Optional<AccessControlViolation> checkAccessPolicyFor(final String component, @SuppressWarnings("unused") final JsonEnvelope jsonEnvelope) { return empty(); }  @Override Optional<AccessControlViolation> checkAccessPolicyFor(final String component,
                                                                 @SuppressWarnings("unused") final JsonEnvelope jsonEnvelope);  }
@Test public void shouldAllowAllAccess() throws Exception { final JsonEnvelope jsonEnvelope = mock(JsonEnvelope.class); assertThat(allowAllAccessController.checkAccessPolicyFor("command", jsonEnvelope).isPresent(), is(false)); }