@Test
public void addChild() {

  CaptureNode realParent = new CaptureNode(new StubCaptureNodeModel());
  CaptureNode childA = new CaptureNode(new StubCaptureNodeModel());
  VisualNodeCaptureNode visualParent = new VisualNodeCaptureNode(new StubCaptureNodeModel());
  realParent.addChild(childA);
  assertThat(childA.getParent()).isEqualTo(realParent);
  assertThat(realParent.getChildAt(0)).isEqualTo(childA);
  visualParent.addChild(childA);
  assertThat(childA.getParent()).isEqualTo(realParent);
  assertThat(realParent.getChildAt(0)).isEqualTo(childA);
  assertThat(visualParent.getChildAt(0)).isEqualTo(childA);
}