### Question:
EventServiceRestClientImpl implements Xs2aEventServiceEncrypted { @Override public boolean recordEvent(@NotNull EventBO event) { return consentRestTemplate.postForEntity(eventRemoteUrls.createEvent(), event, Boolean.class).getBody(); }  @Override boolean recordEvent(@NotNull EventBO event);  }### Answer:
@Test void recordEvent() { EventBO event = EventBO.builder().build(); when(eventRemoteUrls.createEvent()).thenReturn(CREATE_URL); when(consentRestTemplate.postForEntity(eq(CREATE_URL), eq(event), eq(Boolean.class))).thenReturn(responseEntity); when(responseEntity.getBody()).thenReturn(true); assertTrue(eventServiceRestClient.recordEvent(event)); verify(eventRemoteUrls, times(1)).createEvent(); verify(consentRestTemplate, times(1)).postForEntity(eq(CREATE_URL), eq(event), eq(Boolean.class)); verify(responseEntity, times(1)).getBody(); }