testSetVisibleForRenderedControl() {
    control.render(sandbox);
    assertTrue(
        'No events must have been dispatched during rendering',
        noEventsDispatched());

    assertFalse(
        'setVisible(true) must return false if already visible',
        control.setVisible(true));
    assertTrue('No events must have been dispatched', noEventsDispatched());
    assertTrue(
        'Control\'s element must be visible',
        control.getElement().style.display != 'none');

    assertTrue(
        'setVisible(false) must return true if previously visible',
        control.setVisible(false));
    assertEquals(
        'One HIDE event must have been dispatched', 1,
        getEventCount(control, Component.EventType.HIDE));
    assertFalse('Control must no longer be visible', control.isVisible());
    assertTrue(
        'Control\'s element must be hidden',
        control.getElement().style.display == 'none');

    assertTrue(
        'setVisible(true) must return true if previously hidden',
        control.setVisible(true));
    assertEquals(
        'One SHOW event must have been dispatched', 1,
        getEventCount(control, Component.EventType.SHOW));
    assertTrue('Control must be visible', control.isVisible());
    assertTrue(
        'Control\'s element must be visible',
        control.getElement().style.display != 'none');
  }
Tests {@link Control#setVisible} after it is rendered.