verify(managementController, clusters, cluster, executionFactory,
requestExecution, response, executionScheduleManager);
List<BatchRequest> testRequests = batchCapture.getValue().getBatchRequests();
Assert.assertNotNull(testRequests);
BatchRequest deleteReq = null;
BatchRequest putReq = null;
for (BatchRequest testBatchRequest : testRequests) {
if (testBatchRequest.getType().equals(BatchRequest.Type.DELETE.name())) {
deleteReq = testBatchRequest;
} else {
putReq = testBatchRequest;
}
}
Assert.assertNotNull(deleteReq);
Assert.assertNotNull(putReq);
Assert.assertEquals("data1", putReq.getBody());
Assert.assertNull(deleteReq.getBody());
}