Connecting an already connected port should issue a warning/error
Currently, the following code does not throw any exception or issue a warning, although the inputPort
is assigned twice.
connectPorts(outputPort1, inputPort);
connectPorts(outputPort2, inputPort);