ExpensePresenter { public void setExpenseTypes() { view.renderExpenseTypes(database.getExpenseTypes()); } ExpensePresenter(ExpenseDatabaseHelper expenseDatabaseHelper, ExpenseView view); boolean addExpense(); void setExpenseTypes();  }
@Test public void shouldRenderExpenseTypes() throws Exception { List<String> expenseTypes = asList("Food", "Travel"); when(database.getExpenseTypes()).thenReturn(expenseTypes); presenter.setExpenseTypes(); verify(view).renderExpenseTypes(expenseTypes); }