@Test
public void testGetConflictConsent_editconsent() {

	// Arrange
	ConsentDto consentDto = new ConsentDto();
	consentDto.setId("2");
	consentDto.setUsername("usernamemock");
	List<Consent> consentList = new ArrayList<Consent>();
	Consent consent = new Consent();
	consent.setId(new Long(2));
	consent.setStartDate(new Date());
	consent.setEndDate(new Date());
	consentList.add(consent);
	when(consentRepositoryMock.findAllByPatientUsername("usernamemock"))
			.thenReturn(consentList);
	// Act
	ConsentValidationDto consentValidationDto = cst
			.getConflictConsent(consentDto);
	// Assert
	assertNull(consentValidationDto);
}