@Test
 public void convertStringToTime() throws Exception {
   String text = manager.readFile(path);
   List<String> times = manager.extractTimes(text);
   List<Date> datas = manager.convertStringToTime(times);
   assertNotNull(datas);
   assertFalse(datas.isEmpty());
 }
  @Test
  public void extractTime() throws Exception {
    String text = manager.readFile(path);
    List<String> times = manager.extractTimes(text);
    assertNotNull(times);
    assertFalse(times.isEmpty());

    assertTrue(times.contains("00:00:01"));
    assertTrue(times.contains("02:28:17"));
  }
  @Test
  public void subTime() throws IOException, ParseException {
    String text = manager.readFile(path);
    List<String> times = manager.extractTimes(text);
    List<Date> datas = manager.convertStringToTime(times);

    List<String> newTimes = manager.addOrSubTime(datas, -1);
    assertFalse(newTimes.isEmpty());
    assertEquals("00:00:00", newTimes.get(0));
    assertEquals("02:28:16", newTimes.get(newTimes.size() - 1));
  }
 @Test
 public void convertFile() throws IOException, ParseException {
   String fileName = manager.convertFile(path, 10);
   assertEquals("refined-inception-1080p.srt", fileName);
 }
 @Test
 public void readFile() throws Exception {
   String text = manager.readFile(path);
   assertNotNull(text);
   assertFalse(text.isEmpty());
 }