@Test
public void isDisplayedTest() {

    when(webElement.isDisplayed()).thenReturn(true);
    assertThat(InBrowserSinglton.isDisplayed(BasicPath.div), is(equalTo(true)));
    when(webElement.isDisplayed()).thenReturn(false);
    assertThat(InBrowserSinglton.isDisplayed(BasicPath.div), is(equalTo(false)));
}