@Test
  @Verifies(
      value = "should save edited appointment status",
      method = "saveAppointmentStatus(AppointmentStatus)")
  public void saveAppointmentStatus_shouldSaveEditedAppointmentStatus() throws Exception {
    AppointmentStatus appointmentStatus = service.getAppointmentStatus(1);
    assertNotNull(appointmentStatus);
    assertEquals("Waiting", appointmentStatus.getStatus());

    appointmentStatus.setStatus("Edited Status");
    service.saveAppointmentStatus(appointmentStatus);

    appointmentStatus = service.getAppointmentStatus(1);
    assertNotNull(appointmentStatus);
    assertEquals("Edited Status", appointmentStatus.getStatus());

    // Should not change the number of appointment types.
    assertEquals(3, service.getAllAppointmentStatuses().size());
  }
  @Test
  @Verifies(
      value = "should get correct appointment status",
      method = "getAppointmentStatus(Integer)")
  public void getAppointmentStatus_shouldGetCorrectAppointmentStatus() throws Exception {
    AppointmentStatus appointmentStatus = service.getAppointmentStatus(1);
    assertNotNull(appointmentStatus);
    assertEquals("Waiting", appointmentStatus.getStatus());

    appointmentStatus = service.getAppointmentStatus(2);
    assertNotNull(appointmentStatus);
    assertEquals("In-Consultation", appointmentStatus.getStatus());

    appointmentStatus = service.getAppointmentStatus(3);
    assertNotNull(appointmentStatus);
    assertEquals("Missed", appointmentStatus.getStatus());

    appointmentStatus = service.getAppointmentStatus(5);
    Assert.assertNull(appointmentStatus);
  }