@Test
  public void nextFileShouldBeOpenedInCycle() {
    try {
      // mockup
      MockUpUtils.setMockupMidoFile("mockups/Hello_World_12.mido");
      SikuliXAutomations.openMidiAutomator();

      // open first file
      SikuliXAutomations.nextFile();
      SikuliXAutomations.checkIfFileOpened(
          "Hello_World_1_RTF.png", "Hello_World_1_RTF_inactive.png");

      // open second file
      SikuliXAutomations.nextFile();
      SikuliXAutomations.checkIfFileOpened(
          "Hello_World_2_RTF.png", "Hello_World_2_RTF_inactive.png");

      // cycle first file
      SikuliXAutomations.nextFile();
      SikuliXAutomations.checkIfFileOpened(
          "Hello_World_1_RTF.png", "Hello_World_1_RTF_inactive.png");

    } catch (FindFailed | IOException e) {
      fail(e.toString());
    } finally {
      try {
        SikuliXAutomations.closeMidiAutomator();
      } catch (FindFailed e) {
        e.printStackTrace();
      }
    }
  }
  @Test
  public void nextThirdFileShouldBeOpenedAfterAddingOnIndex2() {
    try {
      // mockup
      MockUpUtils.setMockupMidoFile("mockups/Hello_World_12.mido");
      SikuliXAutomations.openMidiAutomator();

      // open first file
      SikuliXAutomations.nextFile();
      SikuliXAutomations.checkIfFileOpened(
          "Hello_World_1_RTF.png", "Hello_World_1_RTF_inactive.png");

      // open second file
      SikuliXAutomations.nextFile();
      SikuliXAutomations.checkIfFileOpened(
          "Hello_World_2_RTF.png", "Hello_World_2_RTF_inactive.png");

      // ad third file
      SikuliXAutomations.addFile("Hello World 3", currentPath + "/testfiles/Hello World 3.rtf");

      // open third file
      SikuliXAutomations.nextFile();
      SikuliXAutomations.checkIfFileOpened(
          "Hello_World_3_RTF.png", "Hello_World_3_RTF_inactive.png");

      // cycle first file
      SikuliXAutomations.nextFile();
      SikuliXAutomations.checkIfFileOpened(
          "Hello_World_1_RTF.png", "Hello_World_1_RTF_inactive.png");

    } catch (FindFailed | IOException e) {
      fail(e.toString());
    } finally {
      try {
        SikuliXAutomations.closeMidiAutomator();
      } catch (FindFailed e) {
        e.printStackTrace();
      }
    }
  }