@Test
public void getNestedChildrenNodesList() throws Exception {

    Document document = DOMParserUtil.getDocument(XML);
    List<Node> retrieved = DOMParserUtil.getNestedChildrenNodesList(document, MAIN_NODE, CHILD_NODE, TEST_NODE);
    assertNotNull(retrieved);
    assertEquals(2, retrieved.size());
    retrieved.forEach(testNode -> assertEquals(TEST_NODE, testNode.getNodeName()));
    retrieved = DOMParserUtil.getNestedChildrenNodesList(document, CHILD_NODE, NESTING_NODE, NESTED_NODE);
    assertNotNull(retrieved);
    assertEquals(2, retrieved.size());
    retrieved.forEach(nestedNode -> assertEquals(NESTED_NODE, nestedNode.getNodeName()));
}