@Test
public void testCheckConditionWhenValueDoesNotExistShouldReturnFalse() throws SaxonApiException {

    //GIVEN
    parameterList.addParameter(new Parameter(NODE + "/@" + ATTRIBUTE, "false"));
    String query = "//*[name()='" + NODE + "']/@" + ATTRIBUTE + "='false'";
    given(queryExpressionEvaluator.evaluateXQuery(REQUEST, query)).willReturn(XML_DECLARATION + "false");
    given(request.getBody()).willReturn(REQUEST);
    given(request.getHeader(CONTENT_TYPE_HEADER)).willReturn(XML_CONTENT);
    //WHEN
    boolean actual = underTest.checkCondition(request, parameterList);
    //THEN
    assertEquals(actual, false);
}