@Test
public void testFindUserCreationInfoByPatientId_Throws_UserCreationNotFoundException_When_Not_Found() throws Exception {

    // Arrange
    thrown.expect(UserCreationNotFoundException.class);
    final Long patientId = 10L;
    final PatientDto patientDto = mock(PatientDto.class);
    when(phrService.findPatientProfileById(patientId)).thenReturn(patientDto);
    when(userCreationRepository.findOneByPatientId(patientId)).thenReturn(Optional.empty());
    // Act
    final UserCreationResponseDto response = sut.findUserCreationInfoByPatientId(patientId);
    // Assert
    assertNull(response);
}