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