@Test
public void SelectionWithReferenceVisibilityTest() throws Exception {

  // Selection with reference information
  Component component = myDetailsView.getComponent();
  FakeInstanceObject referee = new FakeInstanceObject.Builder(myFakeCaptureObject, 1, "REFEREE").setName("referee").build();
  FakeInstanceObject referer =
    new FakeInstanceObject.Builder(myFakeCaptureObject, 2, "REFERER").setName("referee").setFields(Collections.singletonList("mField"))
      .build();
  referer.setFieldValue("mField", OBJECT, referee);
  myFakeCaptureObject.addInstanceObjects(ImmutableSet.of(referee, referer));
  myStage.selectCaptureDuration(
    new CaptureDurationData<>(1, false, false, new CaptureEntry<CaptureObject>(new Object(), () -> myFakeCaptureObject)),
    null);
  myStage.selectInstanceObject(referee);
  assertTrue(component.isVisible());
}