@Test
void shouldThrowOpaClientException() {

    when(restTemplate.postForEntity(anyString(), any(HttpEntity.class), eq(OpaCompilerResponse.class)))
            .thenReturn(new ResponseEntity<>(opaCompilerResponse, HttpStatus.BAD_REQUEST));
    PartialRequest partialRequest = PartialRequest.builder()
            .query("data.petclinic.authz.allow = true")
            .unknowns(Set.of("data.pets")).build();
    assertThrows(OpaClientException.class, () -> {
        target.getExecutableSqlStatements(partialRequest);
    });
}