Address implements Cloneable { public Address() { addressNode = new ModelNode(); } Address();  Address(String... addressParts); static Address root(); static Address parse(String addressStr); static Address fromModelNode(ModelNode node); static Address fromModelNodeWrapper(ModelNode haystack, String needle); ModelNode getAddressNode(); Address add(String... addressParts); Address add(String type, String name); Address add(Address address); boolean isRoot(); String[] toAddressParts(); String toAddressPathString(); @Override Address clone(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testAddress() { Address addr = Address.root().add("one", "two", "three", "four"); assert addr != null; assert addr.getAddressNode().asList().get(0).get("one").asString().equals("two"); assert addr.getAddressNode().asList().get(1).get("three").asString().equals("four"); }