### Question:
TmsConverter { public int month(Date d) { calendar.setTime(d); return calendar.get(Calendar.MONTH); } TmsConverter();  TmsConverter(Calendar calendar); Date convert(Date d, PeriodType periodType); Date rollForward(Date d, PeriodType periodType); int minute(Date d); int hour(Date d); int day(Date d); int month(Date d);  }### Answer:
@Test public void month() { final Date date = new Date(2018 - 1900, 10, 1); converter.month(date); verify(calendar).setTime(date); verify(calendar).get(Calendar.MONTH); }