ClientModel { public int count() { return clientManager.count(); } ClientModel(ClientManager clientManager, TaskManager taskManager); void subscribe(Object listener); void unsubscribe(Object listener); Client getSelectedClient(); void selectClient(Client newClient); Client create(); int count(); Client get(int index); int indexOf(Client client); void save(Client client); void delete(Client client); int getTotalSecondsElapsed(Client client); String getTotalTimeElapsed(Client client); BigDecimal getTotalAmountEarned(Client client); String getTotalAmountEarned(Client client, Locale locale);  }
@Test public void testCount() throws Exception { assertEquals(2, model.count()); }