@Test
  @Transactional
  public void getPhysiotherapist() throws Exception {
    // Initialize the database
    physiotherapistRepository.saveAndFlush(physiotherapist);

    // Get the physiotherapist
    restPhysiotherapistMockMvc
        .perform(get("/api/physiotherapists/{id}", physiotherapist.getId()))
        .andExpect(status().isOk())
        .andExpect(content().contentType(MediaType.APPLICATION_JSON))
        .andExpect(jsonPath("$.id").value(physiotherapist.getId().intValue()))
        .andExpect(jsonPath("$.firstName").value(DEFAULT_FIRST_NAME.toString()))
        .andExpect(jsonPath("$.lastName").value(DEFAULT_LAST_NAME.toString()))
        .andExpect(jsonPath("$.street").value(DEFAULT_STREET.toString()))
        .andExpect(jsonPath("$.postalCode").value(DEFAULT_POSTAL_CODE))
        .andExpect(jsonPath("$.city").value(DEFAULT_CITY.toString()))
        .andExpect(jsonPath("$.country").value(DEFAULT_COUNTRY.toString()));
  }
  @Test
  @Transactional
  public void deletePhysiotherapist() throws Exception {
    // Initialize the database
    physiotherapistRepository.saveAndFlush(physiotherapist);

    int databaseSizeBeforeDelete = physiotherapistRepository.findAll().size();

    // Get the physiotherapist
    restPhysiotherapistMockMvc
        .perform(
            delete("/api/physiotherapists/{id}", physiotherapist.getId())
                .accept(TestUtil.APPLICATION_JSON_UTF8))
        .andExpect(status().isOk());

    // Validate the database is empty
    List<Physiotherapist> physiotherapists = physiotherapistRepository.findAll();
    assertThat(physiotherapists).hasSize(databaseSizeBeforeDelete - 1);
  }