CoordinateUtilities { public static int getRelativeYOfEvent(final DomEvent event) { final NativeEvent e = event.getNativeEvent(); final Element target = event.getRelativeElement(); return e.getClientY() - target.getAbsoluteTop() + target.getScrollTop() + target.getOwnerDocument().getScrollTop(); }  static Point2D convertDOMToGridCoordinate(final GridWidget view,
                                                     final Point2D point); static Integer getUiRowIndex(final GridWidget gridWidget,
                                        final double relativeY); static Integer getUiColumnIndex(final GridWidget gridWidget,
                                           final double relativeX); static Integer getUiHeaderRowIndex(final GridWidget gridWidget,
                                              final Point2D rp); static int getRelativeXOfEvent(final DomEvent event); static int getRelativeYOfEvent(final DomEvent event);  }
@Test public void testGetRelativeYOfEvent() { int retrieved = CoordinateUtilities.getRelativeYOfEvent(contextMenuEventMock); assertEquals(EXPECTED_RELATIVE_Y, retrieved); }