@Test
  @Transactional
  public void getBloodPressure() throws Exception {
    // Initialize the database
    bloodPressureRepository.saveAndFlush(bloodPressure);

    // Get the bloodPressure
    restBloodPressureMockMvc
        .perform(get("/api/bloodPressures/{id}", bloodPressure.getId()))
        .andExpect(status().isOk())
        .andExpect(content().contentType(MediaType.APPLICATION_JSON))
        .andExpect(jsonPath("$.id").value(bloodPressure.getId().intValue()))
        .andExpect(jsonPath("$.timestamp").value(DEFAULT_TIMESTAMP_STR))
        .andExpect(jsonPath("$.systolic").value(DEFAULT_SYSTOLIC))
        .andExpect(jsonPath("$.diastolic").value(DEFAULT_DIASTOLIC));
  }
  @Test
  @Transactional
  public void deleteBloodPressure() throws Exception {
    // Initialize the database
    bloodPressureRepository.saveAndFlush(bloodPressure);

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

    // Get the bloodPressure
    restBloodPressureMockMvc
        .perform(
            delete("/api/bloodPressures/{id}", bloodPressure.getId())
                .accept(TestUtil.APPLICATION_JSON_UTF8))
        .andExpect(status().isOk());

    // Validate the database is empty
    List<BloodPressure> bloodPressures = bloodPressureRepository.findAll();
    assertThat(bloodPressures).hasSize(databaseSizeBeforeDelete - 1);
  }