    @Test
    public void testMinMax() throws IOException, JAXBException {

        MPDtype mpd = read(new File(ManifestOptimizerTest.class.getProtectionDomain().getCodeSource().getLocation().getFile() + "/com/castlabs/dash/dashfragmenter/representation/exampleManifest.mpd"));

        ManifestOptimizer.adjustMinMax(mpd.getPeriod().get(0).getAdaptationSet().get(0), RepresentationType::getBandwidth, AdaptationSetType::setMinBandwidth, AdaptationSetType::setMaxBandwidth);
        Assert.assertEquals(new Long(549100), mpd.getPeriod().get(0).getAdaptationSet().get(0).getMinBandwidth());
        Assert.assertEquals(new Long(1356600), mpd.getPeriod().get(0).getAdaptationSet().get(0).getMaxBandwidth());

        ManifestOptimizer.adjustMinMax(mpd.getPeriod().get(0).getAdaptationSet().get(1), RepresentationType::getBandwidth, AdaptationSetType::setMinBandwidth, AdaptationSetType::setMaxBandwidth);
        Assert.assertNull(mpd.getPeriod().get(0).getAdaptationSet().get(1).getMinBandwidth());
        Assert.assertNull(mpd.getPeriod().get(0).getAdaptationSet().get(1).getMaxBandwidth());


    }