### Question:
MaxMoneyAmountJudgmentUpdater implements JudgmentUpdater<MoneyAmount> { @Override public void addToJudgment(Judgment judgment, MoneyAmount maxMoneyAmount) { Preconditions.checkNotNull(judgment); Preconditions.checkNotNull(maxMoneyAmount); judgment.setMaxMoneyAmount(maxMoneyAmount); }  @Override void addToJudgment(Judgment judgment, MoneyAmount maxMoneyAmount);  }### Answer:
@Test(expected = NullPointerException.class) public void addToJudgment_NULL_JUDGMENT() { maxMoneyAmountJudgmentUpdater.addToJudgment(null, new MoneyAmount()); }
@Test(expected = NullPointerException.class) public void addToJudgment_NULL_MONEY_AMOUNT() { maxMoneyAmountJudgmentUpdater.addToJudgment(new CommonCourtJudgment(), null); }
@Test public void addToJudgment() { Judgment judgment = new CommonCourtJudgment(); MoneyAmount maxMoneyAmount = new MoneyAmount(); maxMoneyAmountJudgmentUpdater.addToJudgment(judgment, maxMoneyAmount); assertEquals(maxMoneyAmount, judgment.getMaxMoneyAmount()); }