### Question:
Xs2aEventService { public void recordTppRequest(@NotNull EventType eventType) { recordTppRequest(eventType, null); }  void recordSbTppRequest(@NotNull String basketId, @NotNull EventType eventType); void recordSbTppRequest(@NotNull String basketId, @NotNull EventType eventType, @Nullable Object body); void recordConsentTppRequest(@NotNull String consentId, @NotNull EventType eventType); void recordConsentTppRequest(@NotNull String consentId, @NotNull EventType eventType, @Nullable Object body); void recordPisTppRequest(@NotNull String paymentId, @NotNull EventType eventType); void recordPisTppRequest(@NotNull String paymentId, @NotNull EventType eventType, @Nullable Object body); void recordTppRequest(@NotNull EventType eventType); void recordTppRequest(@NotNull EventType eventType, @Nullable Object body);  }### Answer:
@Test void recordTppRequest_withBody() { xs2aEventService.recordTppRequest(EVENT_TYPE, BODY); verify(eventService, times(1)).recordEvent(any(EventBO.class)); EventBO capturedEvent = eventCaptor.getValue(); assertThat(capturedEvent.getTimestamp()).isNotNull(); assertThat(capturedEvent.getEventOrigin()).isEqualTo(EventOrigin.TPP); assertThat(capturedEvent.getEventType()).isEqualTo(EVENT_TYPE); assertThat(capturedEvent.getPayload()).isNotNull(); assertThat(capturedEvent.getPsuIdData()).isEqualTo(psuIdData); assertThat(capturedEvent.getTppAuthorisationNumber()).isEqualTo(AUTHORISATION_NUMBER); assertThat(capturedEvent.getXRequestId()).isEqualTo(X_REQUEST_ID); assertThat(capturedEvent.getInternalRequestId()).isEqualTo(INTERNAL_REQUEST_ID); assertThat(((RequestEventPayload) capturedEvent.getPayload()).getBody()).isEqualTo(BODY); }
@Test void recordTppRequest_bodyIsNull() { xs2aEventService.recordTppRequest(EVENT_TYPE); verify(eventService, times(1)).recordEvent(any(EventBO.class)); EventBO capturedEvent = eventCaptor.getValue(); assertThat(capturedEvent.getTimestamp()).isNotNull(); assertThat(capturedEvent.getEventOrigin()).isEqualTo(EventOrigin.TPP); assertThat(capturedEvent.getEventType()).isEqualTo(EVENT_TYPE); assertThat(capturedEvent.getPayload()).isNotNull(); assertThat(capturedEvent.getPsuIdData()).isEqualTo(psuIdData); assertThat(capturedEvent.getTppAuthorisationNumber()).isEqualTo(AUTHORISATION_NUMBER); assertThat(capturedEvent.getXRequestId()).isEqualTo(X_REQUEST_ID); assertThat(capturedEvent.getInternalRequestId()).isEqualTo(INTERNAL_REQUEST_ID); assertThat(((RequestEventPayload) capturedEvent.getPayload()).getBody()).isNull(); }