### Question:
ReferencedRegulationsJudgmentUpdater implements JudgmentUpdater<List<JudgmentReferencedRegulation>> { @Override public void addToJudgment(Judgment judgment, List<JudgmentReferencedRegulation> referencedRegulations) { Preconditions.checkNotNull(judgment); Preconditions.checkNotNull(referencedRegulations); for (JudgmentReferencedRegulation referencedRegulation : referencedRegulations) { judgment.addReferencedRegulation(referencedRegulation); } }  @Override void addToJudgment(Judgment judgment, List<JudgmentReferencedRegulation> referencedRegulations);  }### Answer:
@Test(expected=NullPointerException.class) public void addToJudgment_JudgmentNull() { referencedRegulationsJudgmentUpdater.addToJudgment(null, referencedRegulations); }
@Test(expected=NullPointerException.class) public void addToJudgment_ReferencedCourtCasesNull() { referencedRegulationsJudgmentUpdater.addToJudgment(judgment, null); }
@Test public void addToJudgment() { referencedRegulationsJudgmentUpdater.addToJudgment(judgment, referencedRegulations); verify(judgment).addReferencedRegulation(referencedRegulations.get(0)); verify(judgment).addReferencedRegulation(referencedRegulations.get(1)); }