MainPresenter { public void onDeleteButtonClick(int position) { mModel.removeNoteFromList(position); mView.updateRecyclerView(mModel.getNoteList()); } MainPresenter(MainView view, MainModel model); void onCreate(); void onSaveButtonClick(String note); void onDeleteButtonClick(int position);  }
@Test public void testOnDeleteButtonClick() throws Exception { int position = 0; presenter.onDeleteButtonClick(position); verify(model).removeNoteFromList(position); verify(view).updateRecyclerView(model.getNoteList()); }