@Test
public void testPinnedModeVisible() throws Exception {

    final Element element = mock(Element.class);
    final Style style = mock(Style.class);
    doReturn(element).when(pinnedModeIndicator).getElement();
    doReturn(style).when(element).getStyle();
    view.setPinnedModeIndicatorVisibility(true, 0);
    verify(style).setTop(0.5, Style.Unit.EM);
}