@Test
public void testGetElementByXPathShouldReturnElement() throws XPathExpressionException {

    //GIVEN
    String expression = "";
    given(xPath.compile(expression)).willReturn(xPathExpression);
    given(xPathExpression.evaluate(document, XPathConstants.NODE)).willReturn(node);
    given(node.getNodeType()).willReturn(Node.ELEMENT_NODE);
    //WHEN
    Element actual = underTest.getElementByXPath(expression, document);
    //THEN
    Assert.assertEquals(actual, node);
}