@Test
public void isViewShownOnlyIfComponentViewIsReady() {

    assertThat(uut.isViewShown()).isFalse();
    uut.ensureViewIsCreated();
    when(view.asView().isShown()).thenReturn(true);
    assertThat(uut.isViewShown()).isFalse();
    when(view.isReady()).thenReturn(true);
    assertThat(uut.isViewShown()).isTrue();
}