assertThat(accessControl.checkAccess("testuser", invocation), Matchers.is(Access.GRANTED));
}
@Test
public void testCheckMethodPublicAccess_shouldGrant() throws Exception {
NullDomainImpl nullDomainImpl = new NullDomainImpl("foo");
MethodInvocation invocation = MethodInvocationUtils.create(nullDomainImpl, "getInstanceId");
assertThat(accessControl.checkAccess("testuser", invocation), Matchers.is(Access.GRANTED));
}