@Test
public void testFlush() {

    final Command c = mock(Command.class);
    presenter.flushCommand = c;
    presenter.flush();
    verify(c, times(1)).execute();
    verify(view, times(0)).init(presenter);
    verify(view, times(0)).add(any(IsWidget.class));
    verify(view, times(0)).addButton(anyString(), anyString(), anyBoolean(), any(Command.class));
    verify(view, times(0)).clearButtons();
    verify(view, times(0)).clearView();
}