### Question:
JudgmentContentFilePathGenerator { public String generatePath(Judgment judgment) { CourtType courtType = judgment.getCourtType(); LocalDate judgmentDate = judgment.getJudgmentDate(); return courtType.name().toLowerCase() + "/" + judgmentDate.getYear() + "/" + judgmentDate.getMonthOfYear() + "/" + judgmentDate.getDayOfMonth() + "/"; }  String generatePath(Judgment judgment);  }### Answer:
@Test public void generatePath() { Judgment judgment = new SupremeCourtJudgment(); judgment.setJudgmentDate(new LocalDate(2012, 2, 12)); String generatedPath = judgmentContentFilePathGenerator.generatePath(judgment); assertEquals("supreme/2012/2/12/", generatedPath); }