testExitAndEnterDocument() {
    const component = new Component();
    component.render(sandboxEl);

    const item1 = new MenuItem('item 1');
    const item2 = new MenuItem('item 2');
    const item3 = new MenuItem('item 3');

    select.addItem(item1);
    select.addItem(item2);
    select.addItem(item3);

    component.addChild(select, true);
    item2.dispatchEvent(Component.EventType.ACTION);
    assertEquals(item2.getCaption(), select.getCaption());

    component.removeChild(select, true);
    item1.dispatchEvent(Component.EventType.ACTION);
    assertEquals(item2.getCaption(), select.getCaption());

    component.addChild(select, true);
    item3.dispatchEvent(Component.EventType.ACTION);
    assertEquals(item3.getCaption(), select.getCaption());
  }
Check that the select control is subscribed to its selection model events
after being added, removed and added back again into the document.