final RemoteCalcNodeMessage message = dcontext.fudgeMsgToObject(RemoteCalcNodeMessage.class, msgEnvelope.getMessage());
assertNotNull(message);
s_logger.debug("request = {}", message);
assertTrue(message instanceof Execute);
final Execute job = (Execute) message;
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));
}