@Test
public void testFindPatientProfileById_Use_Client_Credentials_False_Throws_RuntimeException() throws Exception {

    // Arrange
    final boolean useClientCredentials = false;
    final Long patientId = 5L;
    final PatientDto patientDto = mock(PatientDto.class);
    when(phrServiceDefault.findPatientProfileById(patientId)).thenThrow(RuntimeException.class);
    thrown.expect(RuntimeException.class);
    // Act
    final PatientDto response = sut.findPatientProfileById(patientId, useClientCredentials);
    // Assert
    assertEquals(patientDto, response);
    verify(phrServiceDefault, times(1)).findPatientProfileById(patientId);
    verify(phrServiceClientCredentials, times(0)).findPatientProfileById(patientId);
}