### Question:
NotificationEditorWidget implements IsWidget,
                                                 NotificationEditorWidgetView.Presenter { @Override public String minuteOrMonth(MatchResult match) { String t = match.getGroup(1); return ((match.getGroup(3).equals("M") && !t.isEmpty()) ? "m" : match.getGroup(3)); } @Inject  NotificationEditorWidget(NotificationEditorWidgetView view,
                                    ClientTranslationService translationService); @Override Widget asWidget(); @Override String getNameHeader(); @Override String getFromLabel(); @Override String getExpirationLabel(Expiration type); @Override void createOrEdit(NotificationWidgetView parent, NotificationRow row); @Override void ok(String emails); @Override String clearEmails(String emails); void setReadOnly(boolean readOnly); @Override void setRepeatNotificationVisibility(boolean isVisible); @Override void setRepeatNotificationInvisibility(boolean isInvisible); @Override void setNotificationPanelDivVisibility(boolean isVisible); @Override void addUsers(List<String> users); @Override void addGroups(List<String> groups); @Override void addFrom(String from); @Override void addReplyTo(String replyTo); @Override Expiration parseExpiration(String expirationAt, Expiration expiration); @Override void setExpiration(Expiration expiration, NotificationRow row); @Override String getRepeatCount(String repeatable); @Override void setExpirationDateTime(String expiresAt); @Override Date parseDate(String date); @Override String clearTimeZone(String value); @Override NotificationType getNotificationType(boolean isNotStarted); @Override boolean isRepeatable(String repeatable); @Override String minuteOrMonth(MatchResult match);  }### Answer:
@Test public void testMinutesOrMonth() { String minutes = "PT4M"; String month = "P11M"; String repeatMonth = "R/P7M"; String repeatMinutes = "R/PT9M"; assertEquals("m", presenter.minuteOrMonth(getMatchFor(minutes))); assertEquals("m", presenter.minuteOrMonth(getMatchFor(repeatMinutes))); assertEquals("M", presenter.minuteOrMonth(getMatchFor(month))); assertEquals("M", presenter.minuteOrMonth(getMatchFor(repeatMonth))); }