.completeRetrievePackageBitsRequest(Mockito.any(ContentServiceResponse.class),
Mockito.any(InputStream.class));
//setup the content retrieval request and execute it
Resource deploymentResource = deploymentResources.iterator().next();
RetrievePackageBitsRequest request = new RetrievePackageBitsRequest(0, deploymentResource.getId(),
getTestDeploymentPackageDetails(deployment));
pluginContainer.getContentManager().retrievePackageBits(request);
//the content retrieval is async so wait in the test method until the mocked server-side
//completed the test (unless it has already done so).