testData(tmax, timeout, test.getSucessfulPutCount(), incrementSucessfulPut);
testData(tmax, timeout, test.getFailedGetCount(), incrementFailedGetRequests);
testData(tmax, timeout, test.getFailedDeleteCount(), incrementFailedDeleteRequests);
testData(tmax, timeout, test.getFailedPutCount(), incrementFailedPutRequests);
test.shutdown();
}
// test minimum and maximum speed
private void testData(double tmax, long tmin, float value, double requests) {
assertTrue((requests / tmax) * 1000 <= value);