@Test
@SuppressWarnings("unchecked")
public void checkRegisteredNodeMouseDoubleClickHandlerNotOverHeader() {

    final ArgumentCaptor<NodeMouseDoubleClickHandler> nodeMouseDoubleClickHandlerArgumentCaptor = ArgumentCaptor.forClass(NodeMouseDoubleClickHandler.class);
    //dtPresenter.setContent(...) is called by the base tests @Before method
    verify(view,
           times(1)).registerNodeMouseDoubleClickHandler(nodeMouseDoubleClickHandlerArgumentCaptor.capture());
    final NodeMouseDoubleClickHandler nodeMouseDoubleClickHandler = nodeMouseDoubleClickHandlerArgumentCaptor.getValue();
    assertNotNull(nodeMouseDoubleClickHandler);
    //Mouse not over Header
    final NodeMouseDoubleClickEvent event = mock(NodeMouseDoubleClickEvent.class);
    when(view.isNodeMouseEventOverCaption(eq(event))).thenReturn(false);
    nodeMouseDoubleClickHandler.onNodeMouseDoubleClick(event);
    verify(dtPresenter,
           never()).enterPinnedMode(any(GridWidget.class),
                                    any(Command.class));
    verify(dtPresenter,
           never()).enterPinnedMode(any(GridWidget.class),
                                    any(Command.class));
}