@Test
public void testFindPatientEmailByUsername() {

	// Arrange
	final Patient patient = mock(Patient.class);
	when(patientRepository.findByUsername(anyString())).thenReturn(patient);
	final String expectedEmail = "test@test.com";
	when(patient.getEmail()).thenReturn(expectedEmail);
	// Act
	String result = sut.findPatientEmailByUsername(anyString());
	// Assert
	assertEquals(expectedEmail, result);
}