### Question:
ExplicitNode extends NodeBase { @Override public List<NodeBase> getChildren() { if (child == null) { return Arrays.asList(); } return Arrays.asList(child); } ExplicitNode(final String name, final Node realNode); Node getRealNode(); NodeBase getParent(); NodeBase getChild(); @Override void addParent(final NodeBase parent); @Override void addParentWithCondition(final Decision parent, final Condition condition); @Override void addParentDefaultConditional(Decision parent); @Override void removeParent(final NodeBase parent); @Override void clearParents(); @Override List<NodeBase> getChildren();  }### Answer:
@Test public void testGetChildren() { final ExplicitNode instance = getInstance("start"); final NodeBase child = getInstance("child"); child.addParent(instance); assertEquals(Arrays.asList(child), instance.getChildren()); }