@Test
public void testAddOnExitPinnedModeCommand() {

    final GuidedDecisionTableModellerView.Presenter parent = mock(GuidedDecisionTableModellerView.Presenter.class);
    final Command command = mock(Command.class);
    doReturn(parent).when(dtPresenter).getParent();
    dtPresenter.addOnExitPinnedModeCommand(command);
    verify(parent).addOnExitPinnedModeCommand(command);
}