@Test
public void testParseNodeShouldReturnWithASimpleConditionWithEmptyParamsWhenConditionNodeArgumentHasOneChildWithConditionTagNameWithoutChildParam() {

    //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);
    List<Node> paramList = new ArrayList<Node>();
    given(node.getElementsByTagName(PARAM_ATTRIBUTE)).willReturn(new MyNodeList(paramList));
    given(paramElement.getAttribute("name")).willReturn(PARAM_NAME);
    given(paramElement.getAttribute("value")).willReturn(CLASS_NAME);
    //WHEN
    ConditionDescriptor actual = underTest.parseNode(node, document);
    //THEN
    SimpleCondition actCondition = (SimpleCondition) actual.getCondition();
    Assert.assertEquals(actCondition.getParameters().getAllParameters().size(), 0);
}