### Question:
FragmentFileSet { public void run() throws IOException { FlatPackageWriterImpl flatPackageWriter = new FlatPackageWriterImpl(0); flatPackageWriter.setDebugOutput(debug); flatPackageWriter.setOutputDirectory(outputDir); Movie movie = new Movie(); for (File input : inputFiles) { System.err.println(input.getAbsolutePath()); Movie m = MovieCreator.build(input.getAbsolutePath()); for (Track track : m.getTracks()) { movie.addTrack(track); } } flatPackageWriter.write(movie); }  static void main(String[] args); void run();  }### Answer:
@Test public void testCommandLine() throws IOException { File tmpDir = createTmpDir(); File outputDir = createTmpDir(); copyResource("/smoothstreaming/audio-96000.mp4", tmpDir); copyResource("/smoothstreaming/video-128h-75kbps.mp4", tmpDir); copyResource("/smoothstreaming/video-192h-155kbps.mp4", tmpDir); copyResource("/smoothstreaming/video-240h-231kbps.mp4", tmpDir); copyResource("/smoothstreaming/video-320h-388kbps.mp4", tmpDir); FragmentFileSet fragmentFileSet = new FragmentFileSet(); File inputs[] = tmpDir.listFiles(); Assert.assertNotNull(inputs); fragmentFileSet.inputFiles = Arrays.asList(inputs); fragmentFileSet.outputDir = outputDir; fragmentFileSet.run(); System.err.println(outputDir); Assert.assertTrue(new File(outputDir, "Manifest").exists()); Assert.assertTrue(new File(outputDir, "video").exists()); Assert.assertTrue(new File(outputDir, "audio").exists()); }