final Result result = new Result(JobDispatcherTest.createTestJobResult(job.getJob().getSpecification(), 0, "Test"));
final FudgeSerializer scontext = new FudgeSerializer(fudgeContext);
remoteNode.getFudgeMessageSender().send(FudgeSerializer.addClassHeader(scontext.objectToFudgeMsg(result), result.getClass(), RemoteCalcNodeMessage.class));
}
});
jobDispatcher.dispatchJob(JobDispatcherTest.createTestJob(), resultReceiver);
assertNotNull(resultReceiver.waitForResult(TIMEOUT));
}
public void saturate() {
final JobDispatcher jobDispatcher = new JobDispatcher();