HealthCheckService { public boolean checkDatabaseConnection() { healthCheckDao.checkDatabaseConnection(); return true; } @Inject  HealthCheckService(HealthCheckDao healthCheckDao); boolean checkDatabaseConnection();  }
@Test public void checkDatabaseConnectionDelegatesToDao() { service.checkDatabaseConnection(); verify(dao).checkDatabaseConnection(); }