@Test(expected = IllegalStateException.class)
public void testUpdateDestToInputPortInNonChildGroup() {

    final String flowId = flow.getFlowMetadata().getIdentifier();
    when(flowManager.getFlow(flowId)).thenReturn(Optional.of(flow));
    final ConnectableComponent newDest = ComponentUtils.createConnectableComponent(group1InputPort);
    final VersionedConnection requestConnection = new VersionedConnection();
    requestConnection.setIdentifier(connectionG2P2toG2P3.getIdentifier());
    requestConnection.setDestination(newDest);
    connectionService.update(flowId, requestConnection);
}