@Test(expected = IllegalArgumentException.class)
public void readValueByXPathExpWithException() throws Exception {

    String simpleDefaultStringElement = prepareElement(STRING_TAG, DEFAULT_STRING);
    String simpleStringElement = prepareElement(STRING_TAG, stringValue);
    String grandChildXml = prepareElement(XML_GRAND_CHILD_TAG, simpleStringElement);
    String childXml = prepareElement(XML_CHILD_TAG, grandChildXml);
    String rootXml = prepareElement(XML_ROOT_TAG, simpleDefaultStringElement + childXml);
    xsr = new XmlSettingsReader(rootXml);
    String incorrectXPathExp = "::anyWrongExp";
    xsr.getStringPropertyByXPath(incorrectXPathExp, STRING_TAG, DEFAULT_STRING);
}