### Question:
SuperHeroCreator implements Processor { @Transactional(REQUIRED) Hero add(final String legumeItem) { log.info("Legume received: {}", legumeItem); final Hero hero = Hero.builder() .name("SUPER-" + legumeItem) .capeType(CapeType.SUPERMAN) .build(); final Hero createdHero = entityManager.merge(hero); log.info("hero created: {}", createdHero); return createdHero; }  @Override void process(final Exchange exchange);  }### Answer:
@Test void add() { final Hero hero = creator.add("broccoli"); assertNotNull(hero); assertNotNull(hero.getId()); assertEquals("SUPER-broccoli", hero.getName()); }