NodeBuilder.addToTree(root, on2);
Node[] children = root.getChildren();
assertEquals(1, children.length);
assertTrue(children[0] instanceof DomainNode);
DomainNode domainNode = (DomainNode) children[0];
assertEquals("test", domainNode.getDomain()); //$NON-NLS-1$
children = domainNode.getChildren();
assertEquals(1, children.length);
assertTrue(children[0] instanceof PropertyNode);
PropertyNode typeNode = (PropertyNode) children[0];
assertEquals("type", typeNode.getKey()); //$NON-NLS-1$
assertEquals("Test", typeNode.getValue()); //$NON-NLS-1$