PutGroupMembershipNotificationTask implements NotificationTask { @Override public String getDescription() { return DESCRIPTION; } PutGroupMembershipNotificationTask(String domain, String org, Group group, Map<String, String> details, DBService dbService, String userDomainPrefix); @Override List<Notification> getNotifications(); @Override String getDescription();  }
@Test public void testDescriptionAndType() { DBService dbsvc = Mockito.mock(DBService.class); PutGroupMembershipNotificationTask putGroupMembershipNotificationTask = new PutGroupMembershipNotificationTask("testDomain", "testOrg", new Group(), new HashMap<>(), dbsvc, USER_DOMAIN_PREFIX); String description = putGroupMembershipNotificationTask.getDescription(); assertEquals("Group Membership Approval Notification", description); }