final ConfigurationAgentService configAgentService = context.mock(ConfigurationAgentService.class);
final ConfigurationUpdateRequest expectedUpdateRequest = new ConfigurationUpdateRequest(expectedUpdate.getId(),
expectedUpdate.getConfiguration(), expectedUpdate.getResource().getId());
final Sequence configUdpate = context.sequence("raw-config-update");
context.checking(new Expectations() {
{
oneOf(authorizationMgr).hasResourcePermission(fixture.subject, CONFIGURE_READ, fixture.resourceId);
will(returnValue(true));