@Test
public void testGetConflictConsent_no_overlap() {

	// Arrange
	ConsentDto consentDtoMock = mock(ConsentDto.class);
	consentDtoMock.setId("2");
	String userNameMock = "usernamemock";
	when(consentDtoMock.getUsername()).thenReturn(userNameMock);
	List<Consent> consentList = new ArrayList<Consent>();
	Consent consent = new Consent();
	consent.setId(new Long(1));
	consent.setStartDate(new Date());
	consent.setEndDate(new Date());
	consentList.add(consent);
	when(consentRepositoryMock.findAllByPatientUsername(userNameMock))
			.thenReturn(consentList);
	when(
			consentHelperMock.isConsentTermOverlap(consentDtoMock,
					consent.getStartDate(), consent.getEndDate()))
			.thenReturn(false);
	// Act
	ConsentValidationDto consentValidationDto = cst
			.getConflictConsent(consentDtoMock);
	// Assert
	assertNull(consentValidationDto);
}