### Question:
JoiningNodeBase extends NodeBase { T getBranchingPair() { return branching; } JoiningNodeBase(final String name, final T branching); List<NodeBase> getParents(); @Override void addParent(final NodeBase parent); @Override void addParentWithCondition(final Decision parent, final Condition condition); @Override void addParentDefaultConditional(final Decision parent); @Override void removeParent(final NodeBase parent); @Override void clearParents(); @Override List<NodeBase> getChildren(); NodeBase getChild();  }### Answer:
@Test public void testCorrespondingBranchingIsCorrect() { B branching = getBranchingInstance("branching"); J joining = getJoiningInstance("joining", branching); assertEquals(branching, joining.getBranchingPair()); }