@Test
public void onCreate_shouldCreateAndHideCloseButton() throws Exception {

    initializeSubject();
    subject.onCreate();
    ImageButton closeButton = getCloseButton();
    assertThat(closeButton).isNotNull();
    assertThat(getShadowImageButton(closeButton).getOnClickListener()).isNotNull();
    assertThat(closeButton.getVisibility()).isEqualTo(GONE);
}