@Test
public void shouldFindWellsWithEmptyGraphQLQuery() throws Exception {

    String query = TestUtilities.getResourceAsString("well1311FullEmptyQuery.xml");
    String response = TestUtilities.getResourceAsString("WellGraphQLResponseFull.json");
    ObjWells queryObject = WitsmlMarshal.deserialize(query, ObjWells.class);
    AbstractWitsmlObject singleWell = queryObject.getWell().get(0);
    GraphQLQueryConverter converter = new GraphQLQueryConverter();
    String jsonQuery = converter.getQuery(singleWell);
    assertNotNull(jsonQuery);
    String endpoint = this.url + this.graphQlWellPath;
    HttpRequestWithBody req = Unirest.post(endpoint);
    req.header("Content-Type", "application/json");
    req.body(jsonQuery);
    HttpResponse<String> resp = mock(HttpResponse.class);
    when(resp.getBody()).thenReturn(response);
    when(resp.getStatus()).thenReturn(200);
    when(this.mockClient.makeRequest(argThat(someReq -> (
            someReq.getHttpMethod().name().equals(req.getHttpMethod().name()) &&
                    someReq.getUrl().equals(req.getUrl()) &&
                    someReq.getHeaders().containsKey("Content-Type")
    )), eq("goodUsername"), eq("goodPassword"), anyString())).thenReturn(resp);
    ArrayList<AbstractWitsmlObject> foundObjects = this.delegator.search(singleWell, "goodUsername", "goodPassword", "exchangeID", this.mockClient, new HashMap<>());
    assertEquals(3, foundObjects.size());
}