@Test
public void testnotificationStage_is_add_consent_successed() {

	Patient patient = mock(Patient.class);
	when(patientRepository.findByUsername(anyString())).thenReturn(patient);
	IndividualProvider individualProvider = mock(IndividualProvider.class);
	IndividualProvider individualProvider2 = mock(IndividualProvider.class);
	Set<IndividualProvider> individualProviders = new HashSet<IndividualProvider>();
	Set<Consent> consents = new HashSet<Consent>();
	Consent consent = mock(Consent.class);
	consents.add(consent);
	individualProviders.add(individualProvider);
	individualProviders.add(individualProvider2);
	when(patient.getIndividualProviders()).thenReturn(individualProviders);
	when(patient.getConsents()).thenReturn(consents);
	String result = nst.notificationStage("username", "add");
	assertEquals("notification_add_consent_successed", result);
}