when(jobManager.lookupConnectionInfo(Matchers.any(InstanceConnectionInfo.class), Matchers.eq(jid), Matchers.eq(senderId)))
.thenReturn(ConnectionInfoLookupResponse.createReceiverFoundAndReady(receiverId));
tm = createTaskManager(jobManager);
ChannelDeploymentDescriptor cdd = new ChannelDeploymentDescriptor(senderId, receiverId);
TaskDeploymentDescriptor tdd1 = new TaskDeploymentDescriptor(jid, vid1, eid1, "Sender", 0, 1,
new Configuration(), new Configuration(), Sender.class.getName(),
Collections.singletonList(new GateDeploymentDescriptor(Collections.singletonList(cdd))),
Collections.<GateDeploymentDescriptor>emptyList(),