GridLienzoScrollUI { Style style(final Widget widget) { return widget.getElement().getStyle(); } GridLienzoScrollUI(final GridLienzoScrollHandler gridLienzoScrollHandler);   }
@Test public void testStyle() { final Widget widget = mock(Widget.class); final Element element = mock(Element.class); final Style expectedStyle = mock(Style.class); doReturn(expectedStyle).when(element).getStyle(); doReturn(element).when(widget).getElement(); doCallRealMethod().when(gridLienzoScrollUI).style(any()); final Style actualStyle = gridLienzoScrollUI.style(widget); assertEquals(expectedStyle, actualStyle); }