InMemoryContinentRepository implements ContinentRepository { public Iterable<Continent> findAll() { return CONTINENTS.values(); }  Iterable<Continent> findAll(); Continent findByCode(String code);  }
@Test public void findAllShouldReturnAllContinents() { assertEquals(7, Iterables.size(this.continentRepository.findAll())); }
@Test public void findAllShouldReturnEuropeAmongOthers() { assertTrue(Iterables.contains(this.continentRepository.findAll(), europe())); }