### Question:
MonthlyStockCountAlert implements NotificationMessage { @Override public String getMessage() { SimpleDateFormat simpleDateFormat = new SimpleDateFormat("MMMM"); return "Monthly Stock Count for " + simpleDateFormat.format(dateCreated); } MonthlyStockCountAlert();  MonthlyStockCountAlert(Date date); @Override String getMessage(); @Override void onClick(Context context); Date getDateCreated(); boolean isDisabled(); void setDisabled(boolean disabled); static final String DATE_CREATED; }### Answer:
@Test public void shouldHaveCorrectMessage() throws Exception { Calendar calendar = Calendar.getInstance(); calendar.set(2025, Calendar.JULY, 27); MonthlyStockCountAlert alert = new MonthlyStockCountAlert(calendar.getTime()); assertThat(alert.getMessage(), containsString("July")); assertThat(alert.getMessage(), containsString("Monthly Stock Count for July")); }