@Test
public void testOnDataSetDefModifiedEvent() {

    final DataSetDefModifiedEvent event = mock(DataSetDefModifiedEvent.class);
    when(event.getOldDataSetDef()).thenReturn(dataSetDef);
    when(event.getNewDataSetDef()).thenReturn(dataSetDef);
    presenter.panels.add(dataSetPanel);
    presenter.onDataSetDefModifiedEvent(event);
    assertEquals(1, presenter.panels.size());
    assertEquals(dataSetPanel, presenter.panels.get(0));
    verify(view, times(0)).clear();
    verify(view, times(0)).addPanel(any(DataSetPanel.View.class));
    verify(dataSetPanel, times(1)).show(dataSetDef, "dataSetsExplorerPanelGroup");
    verify(dataSetPanel, times(1)).close();
}