@Test
public void testCheckConditionWhenResultIsANodeShouldLogResult() throws SaxonApiException {

    //GIVEN
    parameterList.addParameter(new Parameter("xquery", QUERY));
    given(request.getHeader(CONTENT_TYPE_HEADER)).willReturn(XML_CONTENT);
    given(request.getBody()).willReturn(BODY);
    given(queryExpressionEvaluator.evaluateXQuery(BODY, QUERY)).willReturn(XML_DECLARATION + "<ns5:HotelID >179</ns5:HotelID>");
    Whitebox.setInternalState(underTest, "logger", logger);
    //WHEN
    underTest.checkCondition(request, parameterList);
    //THEN
    verify(logger).debug(Mockito.anyString(), Mockito.any(SaxonApiException.class));
}