// #4 Update on complex key resource
methodDescriptor = discoveredItemsResourceModel.findMethod(ResourceMethod.UPDATE);
discoveredItemsResource = getMockResource(PromiseDiscoveredItemsResource.class);
ComplexResourceKey<DiscoveredItemKey, DiscoveredItemKeyParams> complexKey =
getDiscoveredItemComplexKey(1L, 2, 3L);
EasyMock.expect(discoveredItemsResource.update(
eq(complexKey),
(DiscoveredItem)EasyMock.anyObject())).andReturn(null).once();
checkInvocation(discoveredItemsResource,
methodDescriptor,
"PUT",