seq1.addChild(send);
synapseConfig.addSequence(seq1.getName(), seq1);
assertDependency(ConfigurationObject.TYPE_ENDPOINT, endpoint.getName(), seq1.getName());
synapseConfig.removeSequence(seq1.getName());
seq1.removeChild(0);
send = new SendMediator();
endpointRef = new IndirectEndpoint();
endpointRef.setKey(endpoint2.getName());
send.setEndpoint(endpointRef);
seq1.addChild(send);