@Test
void shouldHandleException() {

    ResponseEntity<QueryResponse> result = target.handleException(new IOException("illegalArgumentException"));
    assertThat(result, is(notNullValue()));
    assertThat(result.getStatusCodeValue(), is(500));
}