Endpoint endpoint = createEndpoint("endpoint");
initEndpoint(endpoint, entry1.getKey());
synapseConfig.addEndpoint(endpoint.getName(), endpoint);
assertDependency(ConfigurationObject.TYPE_ENTRY, entry1.getKey(), endpoint.getName());
synapseConfig.removeEndpoint(endpoint.getName());
initEndpoint(endpoint, entry2.getKey());
synapseConfig.addEndpoint(endpoint.getName(), endpoint);
assertNoDependency(ConfigurationObject.TYPE_ENTRY, entry1.getKey());
assertDependency(ConfigurationObject.TYPE_ENTRY, entry2.getKey(), endpoint.getName());