@Test
public void testDelete() {

    GroupFunction groupFunction = new GroupFunction("column1", "column1", AggregateFunctionType.COUNT);
    presenter.init(metadata, groupFunction, null, "Title", true, true);
    presenter.delete();
    verify(deleteEvent).fire(any(GroupFunctionDeletedEvent.class));
}