@Test
public void createBooleanUsingXPathExpressionTest() throws XPathExpressionException, UnsupportedEncodingException {

    Boolean result = XMLUtils.createBooleanUsingXPathExpression("/parentNode/childNode[4]", testXml);
    assertThat(result, equalTo(Boolean.TRUE));
    result = XMLUtils.createBooleanUsingXPathExpression("/parentNode/childNode[6]", testXml);
    assertThat(result, equalTo(Boolean.FALSE));
}