@Test
public void testDestroyConnection() {
NetworkConfig network = new DefaultNetworkConfig("test");
ConnectionConfig connection = network.createConnection("foo", "bar");
network.destroyConnection("foo", "bar");
boolean exists = false;
for (ConnectionConfig other : network.getConnections()) {
if (other.equals(connection)) {
exists = true;
}