Track t = new AACTrackImpl(new BufferedInputStream(AACTrackImplTest.class.getResourceAsStream("/com/googlecode/mp4parser/authoring/tracks/aac-sample.aac")));
Movie m = new Movie();
m.addTrack(t);
DefaultMp4Builder mp4Builder = new DefaultMp4Builder();
IsoFile isoFile = mp4Builder.build(m);
// FileChannel fc = new FileOutputStream("/home/sannies/scm/svn/mp4parser/isoparser/src/test/resources/com/googlecode/mp4parser/authoring/tracks/aac-sample.mp4").getChannel();
// isoFile.getBox(fc);
// fc.close();
IsoFile isoFileReference = new IsoFile(Channels.newChannel(AACTrackImplTest.class.getResourceAsStream("/com/googlecode/mp4parser/authoring/tracks/aac-sample.mp4")));
BoxComparator.check(isoFile, isoFileReference, "/moov[0]/mvhd[0]", "/moov[0]/trak[0]/tkhd[0]", "/moov[0]/trak[0]/mdia[0]/mdhd[0]");