### Question:
Xs2aEventServiceImpl implements Xs2aEventService { @Override public boolean recordEvent(@NotNull EventBO eventBO) { EventPO eventPO = eventBOMapper.toEventPO(eventBO); return eventRepository.save(eventPO) != null; }  @Override boolean recordEvent(@NotNull EventBO eventBO);  }### Answer:
@Test void recordEvent() { EventBO eventBO = jsonReader.getObjectFromFile("json/event-po.json", EventBO.class); EventPO eventPO = new EventPO(); when(mapper.toEventPO(eventBO)).thenReturn(eventPO); when(eventRepository.save(eventPO)).thenReturn(100L); assertTrue(xs2aEventService.recordEvent(eventBO)); verify(eventRepository, times(1)).save(any(EventPO.class)); }