@Test
public void testTherapyModifiedFromLastReviewWithModifyAction()
{

  final MedicationOrderComposition composition =
      MedicationsTestUtils.buildTestMedicationOrderComposition("uid2::1", null, null);
  final MedicationInstructionInstruction instruction =
      MedicationsTestUtils.buildTestMedicationInstruction("MedicationInstructionInstruction 2");
  composition.getMedicationDetail().getMedicationInstruction().add(instruction);
  final List<MedicationActionAction> actionsList = new ArrayList<>();
  actionsList.add(MedicationsTestUtils.buildMedicationAction(MedicationActionEnum.SCHEDULE, new DateTime(2013, 5, 10, 12, 0)));
  actionsList.add(MedicationsTestUtils.buildMedicationAction(MedicationActionEnum.START, new DateTime(2013, 5, 10, 12, 0)));
  actionsList.add(MedicationsTestUtils.buildMedicationAction(MedicationActionEnum.REVIEW, new DateTime(2013, 5, 10, 12, 0)));
  actionsList.add(MedicationsTestUtils.buildMedicationAction(MedicationActionEnum.REVIEW, new DateTime(2013, 5, 11, 12, 0)));
  actionsList.add(MedicationsTestUtils.buildMedicationAction(MedicationActionEnum.REVIEW, new DateTime(2013, 5, 12, 12, 0)));
  actionsList.add(MedicationsTestUtils.buildMedicationAction(MedicationActionEnum.MODIFY_EXISTING, new DateTime(2013, 5, 12, 13, 0)));
  composition.getMedicationDetail().getMedicationAction().addAll(actionsList);
  final boolean modified = medicationsBo.isTherapyModifiedFromLastReview(instruction, actionsList, new DateTime(2013, 5, 12, 5, 0));
  assertTrue(modified);
}