@Test
public void testCheckConditionWhenContentIsFastinfosetShouldReturnTrue() throws SaxonApiException {

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