InMemoryContinentRepository implements ContinentRepository { public Continent findByCode(String code) { return CONTINENTS.get(code); }  Iterable<Continent> findAll(); Continent findByCode(String code);  }
@Test public void findByCodeShouldFindEurope() { assertEquals(europe(), this.continentRepository.findByCode("EU")); }