### Question:
ReferencedCourtCasesJudgmentUpdater implements JudgmentUpdater<List<ReferencedCourtCase>> { @Override public void addToJudgment(Judgment judgment, List<ReferencedCourtCase> referencedCourtCases) { Preconditions.checkNotNull(judgment); Preconditions.checkNotNull(referencedCourtCases); for (ReferencedCourtCase referencedCourtCase : referencedCourtCases) { judgment.addReferencedCourtCase(referencedCourtCase); } }  @Override void addToJudgment(Judgment judgment, List<ReferencedCourtCase> referencedCourtCases);  }### Answer:
@Test(expected=NullPointerException.class) public void addToJudgment_JudgmentNull() { referencedCourtCasesJudgmentUpdater.addToJudgment(null, referencedCourtCases); }
@Test(expected=NullPointerException.class) public void addToJudgment_ReferencedCourtCasesNull() { referencedCourtCasesJudgmentUpdater.addToJudgment(judgment, null); }
@Test public void addToJudgment() { referencedCourtCasesJudgmentUpdater.addToJudgment(judgment, referencedCourtCases); verify(judgment).addReferencedCourtCase(referencedCourtCases.get(0)); verify(judgment).addReferencedCourtCase(referencedCourtCases.get(1)); }