@Test
public void testOnDataSetDefRegisteredEvent() {

    final DataSetDefRegisteredEvent event = mock(DataSetDefRegisteredEvent.class);
    when(event.getDataSetDef()).thenReturn(dataSetDef);
    presenter.onDataSetDefRegisteredEvent(event);
    assertEquals(1, presenter.panels.size());
    assertEquals(dataSetPanel, presenter.panels.get(0));
    verify(view).clear();
    verify(view).addPanel(any(DataSetPanel.View.class));
    verify(dataSetPanel).show(dataSetDef, "dataSetsExplorerPanelGroup");
}