### Question:
PoulpeSection extends Section { public void addBranchIfAbsent(@Nullable PoulpeBranch branch) { addBranchIfAbsentTo(getBranches().size(), branch); } PoulpeSection();  PoulpeSection(String name);  PoulpeSection(String name, String description); @SuppressWarnings("unchecked") List<PoulpeBranch> getPoulpeBranches(); @Override String toString(); void clearBranches(); int getAmountOfBranches(); PoulpeBranch getBranch(int index); boolean containsBranch(@Nullable PoulpeBranch branch); PoulpeBranch getLastBranch(); void addBranchIfAbsent(@Nullable PoulpeBranch branch); void addBranchIfAbsentTo(int index, @Nullable PoulpeBranch branch);  }### Answer:
@Test(dataProvider = "provideFilledSection") public void testAddBranchIfAbsent(PoulpeSection section) { int originalSize = section.getAmountOfBranches(); PoulpeBranch branchToAdd = new PoulpeBranch("", ""); section.addBranchIfAbsent(branchToAdd); assertEquals(originalSize + 1, section.getAmountOfBranches()); assertSame(branchToAdd, section.getBranch(originalSize)); assertSame(section, branchToAdd.getPoulpeSection()); }