assert agent1.isStarted() : "agent1 should have been started";
assert agent2.isStarted() : "agent2 should have been started";
InputStream in = new FileInputStream(createVeryLargeFile()); // creates a large file in tmp directory
GenericCommand test_command = new GenericCommand(SimpleTestStreamService.COMMAND_TYPE, null);
CommandResponse results = null;
Long stream_id = null;
try {
test_command.setParameterValue(SimpleTestStreamService.RETURN_COUNT_ONLY_PARAM, "");
test_command.setParameterValue(SimpleTestStreamService.INPUT_STREAM_PARAM, new RemoteInputStream(in, agent1
.getServiceContainer()));
results = agent1.getClientCommandSender().sendSynch(test_command);
} catch (Throwable t) {
throw new Exception(ThrowableUtil.getAllMessages(t), t);