@Test
public void testParseNodesOfElementShouldReturnEmptyListWhenNoConditionDescriptorsExist() {

    //GIVEN
    given(element.getElementsByTagName(ConditionDescriptor.TAG_NAME)).willReturn(nodeList);
    given(nodeList.getLength()).willReturn(0);
    //WHEN
    List<ConditionDescriptor> result = underTest.parseNodesOfElement(document, element);
    //THEN
    assertTrue(result.isEmpty());
}