{
ResourceModel statusResourceModel = buildResourceModel(StatusCollectionResource.class);
ResourceModel discoveredItemsResourceModel = buildResourceModel(DiscoveredItemsResource.class);
ResourceMethodDescriptor methodDescriptor;
StatusCollectionResource statusResource;
DiscoveredItemsResource discoveredItemsResource;
// #1 Batch delete on collection resource
methodDescriptor = statusResourceModel.findMethod(ResourceMethod.BATCH_DELETE);
statusResource = getMockResource(StatusCollectionResource.class);
@SuppressWarnings("rawtypes")
BatchDeleteRequest batchDeleteRequest =(BatchDeleteRequest)EasyMock.anyObject();
EasyMock.expect(statusResource.batchDelete(batchDeleteRequest)).andReturn(null).once();
checkInvocation(statusResource,
methodDescriptor,
"DELETE",
version,
"/statuses?ids=List(1,2)",