assertTrue(connection1.equals(connection2));
}
@Test
public void testConnectionDefaultPort() {
ConnectionConfig connection = new DefaultConnectionConfig("foo", "bar", new DefaultNetworkConfig("test"));
assertEquals("foo", connection.getSource().getComponent());
assertEquals("out", connection.getSource().getPort());
assertEquals("bar", connection.getTarget().getComponent());
assertEquals("in", connection.getTarget().getPort());
}