### Question:
HeroRestController implements HeroApi { @Override public ResponseEntity<Void> addHeroToRepository(String repository, Hero body) { heroService.addHeroToRepository(mapper.map(body), repository); return ResponseEntity.created(null).build(); } HeroRestController(HeroService heroService, HeroMapper mapper); @Override ResponseEntity<Void> addHeroToRepository(String repository, Hero body); @Override ResponseEntity<List<Hero>> collectAllHeros(); @Override ResponseEntity<List<String>> getHeroRepositoryNames();  }### Answer:
@Test public void addHeroToRepository() throws Exception { mockMvc.perform(post("/api/hero/hero/repository") .contentType(MediaType.APPLICATION_JSON) .content( objectMapper.writeValueAsString(new de.bermuda.hero.model.Hero() .name("Batman") .city("Gotham City") .universum(de.bermuda.hero.model.Hero.UniversumEnum.DC_COMICS)))) .andExpect(status().isCreated()); verify(heroService).addHeroToRepository(any(Hero.class), eq("repository")); }