expect(resource.getResourceDefinition()).andReturn(resourceDefinition);
expect(resourceDefinition.getType()).andReturn(Resource.Type.Component);
expect(resource.getQuery()).andReturn(query);
expect(query.getPredicate()).andReturn(predicate);
expect(controller.updateResources(Resource.Type.Component, serverRequest, predicate)).andReturn(new RequestStatusImpl(null));
replay(resource, resourceDefinition, controller, schema, serverRequest, query, predicate);
new TestPersistenceManager(controller, setProperties, serverRequest).update(resource, setProperties);