@Test
public void testParseNodeShouldReturnWithASimpleConditionWhenConditionNodeArgumentHasOneChildWithConditionTagName() {

    //GIVEN
    given(node.getChildNodes()).willReturn(nodeList);
    given(nodeList.getLength()).willReturn(1);
    given(nodeList.item(0)).willReturn(node);
    given(node.getNodeType()).willReturn(Node.ELEMENT_NODE);
    given(node.getTagName()).willReturn(TAGNAME_CONDITION);
    given(node.getAttribute(CLASS_ATTRIBUTE)).willReturn(CLASS_NAME);
    given(conditionCheckerInitializer.getExternalClassObject(CLASS_NAME)).willReturn(conditionChecker);
    //WHEN
    ConditionDescriptor actual = underTest.parseNode(node, document);
    //THEN
    SimpleCondition actCondition = (SimpleCondition) actual.getCondition();
    Assert.assertEquals(actCondition.getConditionChecker(), conditionChecker);
}