@Test
public void testParseNodeShouldReturnTemplateFormatterSetInvoker() {

    //GIVEN
    getChildNodes();
    given(configurationAccess.getProperties()).willReturn(properties);
    given(properties.getMaxDepthOfTree()).willReturn(10);
    given(element.getNodeType()).willReturn(Node.ELEMENT_NODE);
    given(element.getTagName()).willReturn(TEMPLATE_FORMATTER_SET_INVOKER_TAG, TEMPLATE_FORMATTER_SET_INVOKER_TAG, TEMPLATE_FORMATTER_TAG);
    mockTemplateFormatterAttributes();
    given(xPathEvaluator.getElementByXPath(Mockito.anyString(), Mockito.eq(document))).willReturn(node);
    given(formatterInitializer.getExternalClassObject("class")).willReturn(templateFormatter);
    //WHEN
    Set<ResponseFormatterDescriptor> actual = underTest.parseNode(node, document);
    //THEN
    assertEquals(((ResponseFormatterDescriptor) actual.toArray()[0]).getResponseFormatter(), templateFormatter);
}