+ def 'Converting NormalizedNode to a DataNode collection -- edge cases: #scenario.'() {
+ when: 'the normalized node is #node'
+ def result = new DataNodeBuilder().withNormalizedNodeTree(normalizedNode).buildCollection()
+ then: 'the resulting collection contains data nodes for expected list elements'
+ assert result.size() == expectedSize
+ assert result.containsAll(expectedNodes)
+ where: 'following parameters are used'
+ scenario | node | normalizedNode | expectedSize | expectedNodes
+ 'NormalizedNode is null' | 'null' | null | 1 | [ new DataNode() ]
+ 'NormalizedNode is an unsupported type' | 'not supported' | Mock(NormalizedNode) | 0 | [ ]
+ }
+