### Question:
AbstractManifestWriter implements ManifestWriter { public long getBitrate(Track track) { long bitrate = 0; for (Sample sample : track.getSamples()) { bitrate += sample.getSize(); } bitrate /= ((double) track.getDuration()) / track.getTrackMetaData().getTimescale(); bitrate *= (long) 8; return bitrate; } protected  AbstractManifestWriter(FragmentIntersectionFinder intersectionFinder); long[] calculateFragmentDurations(Track track, Movie movie); long getBitrate(Track track);  }### Answer:
@Test public void testGetBitrate() throws Exception { String f = this.getClass().getProtectionDomain().getCodeSource().getLocation().getFile() + "Beethoven - Bagatelle op.119 no.11 i.m4a"; Movie m = MovieCreator.build(new FileDataSourceImpl(f)); Track t = m.getTracks().get(0); AbstractManifestWriter amw = new AbstractManifestWriter(null) { public String getManifest(Movie inputs) throws IOException { return null; } }; Assert.assertEquals(127928, amw.getBitrate(t)); }