### Question:
SupremeCourtJudgment extends Judgment { public void addScChamber(SupremeCourtChamber scChamber) { Preconditions.checkArgument(!containsScChamber(scChamber)); scChambers.add(scChamber); }  @ManyToOne SupremeCourtJudgmentForm getScJudgmentForm(); @Enumerated(EnumType.STRING) PersonnelType getPersonnelType(); @ManyToOne SupremeCourtChamberDivision getScChamberDivision(); @Transient List<SupremeCourtChamber> getScChambers(); @Transient @Override CourtType getCourtType(); boolean containsScChamber(SupremeCourtChamber scChamber); void addScChamber(SupremeCourtChamber scChamber); void removeScChamber(SupremeCourtChamber scChamber); void setScJudgmentForm(SupremeCourtJudgmentForm scJudgmentForm); void setPersonnelType(PersonnelType personnelType); void setScChamberDivision(SupremeCourtChamberDivision scChamberDivision);  }### Answer:
@Test public void addScChamber() { assertEquals(0, scJudgment.getScChambers().size()); scJudgment.addScChamber(scChamberABC); assertEquals(1, scJudgment.getScChambers().size()); assertTrue(scChamberABC == scJudgment.getScChambers().get(0)); }
@Test(expected=IllegalArgumentException.class) public void addScChamber_SameExists() { scJudgment.addScChamber(scChamberABC); scJudgment.addScChamber(scChamberABC); }