@Test
public void testCreateConnectionToInputPortInChildGroup() {

    final String flowId = flow.getFlowMetadata().getIdentifier();
    final String groupId = group2.getIdentifier();
    when(flowManager.getFlow(flowId)).thenReturn(Optional.of(flow));
    // Make the dest the input port of group 3 which is in the same group as the source
    final ConnectableComponent newDest = ComponentUtils.createConnectableComponent(group3InputPort);
    connectionConfig.setDestination(newDest);
    connectionService.create(flowId, groupId, connectionConfig);
}