RegistryKey extends AbstractRegistryNode { public AbstractRegistryNode getChild(int i) { return children.get(i); } RegistryKey(String name); @Override String toString(); @Override String toRegString(); AbstractRegistryNode addChild(AbstractRegistryNode newChild); AbstractRegistryNode addDeepChildren(AbstractRegistryNode... newChildren); RegistryKey addDeepChildren(String... newChildren); List<AbstractRegistryNode> getChildren(); AbstractRegistryNode getChild(int i); AbstractRegistryNode getChild(String childName); AbstractRegistryNode getChild(List<String> childrenNames); AbstractRegistryNode getChild(String... childrenNames); void addChildren(AbstractRegistryNode... nodes);  }
@Test public void testRegistryKeyTestGetChildWithMultipleArguments() throws Exception { assertEquals("Content 1", ((RegistryValue<?>) a1.getChild("B2", "C1", "V1")).getText()); assertEquals("Content 2", ((RegistryValue<?>) a1.getChild("B2", "C2", "V2")).getText()); assertEquals("Content 3", ((RegistryValue<?>) a1.getChild("B2", "C2", "V3")).getText()); assertEquals("C1", a1.getChild("B2", "C1").getName()); }