conduit.getEnd2 ().getFudgeMessageSender().send (FudgeSerializer.addClassHeader(scontext.objectToFudgeMsg (new Init(0)), Init.class, RemoteCalcNodeMessage.class));
final CalculationJob job = createTestCalculationJob();
AbstractIdentifierMap.convertIdentifiers(identifierMap, job);
conduit.getEnd2().getFudgeMessageSender().send(
FudgeSerializer.addClassHeader(scontext.objectToFudgeMsg(new Execute(job)), Execute.class, RemoteCalcNodeMessage.class));
final FudgeMsgEnvelope resultMsgEnvelope = messages.waitForMessage(TIMEOUT);
assertNotNull(resultMsgEnvelope);
final RemoteCalcNodeMessage resultMessage = dcontext.fudgeMsgToObject(RemoteCalcNodeMessage.class, resultMsgEnvelope.getMessage());
assertTrue(resultMessage instanceof Failure);
final Failure failure = (Failure) resultMessage;
assertEquals(job.getSpecification(), failure.getJob ());