### Question:
PoulpeSection extends Section { public PoulpeBranch getLastBranch() { if (getBranches().isEmpty()) { return null; } return (PoulpeBranch) getBranches().get(getBranches().size() - 1); } 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 testGetLastBranch(PoulpeSection section) { List<PoulpeBranch> branches = section.getPoulpeBranches(); assertSame(branches.get(branches.size() - 1), section.getLastBranch()); }