@Test
public void testCopySameAdaptationIndexButDifferentPeriod() throws Exception {

  Representation[][][] representations = newRepresentations(2, 1, 1);
  DashManifest sourceManifest =
      newDashManifest(
          10,
          newPeriod("1", 1, newAdaptationSet(2, representations[0][0])),
          newPeriod("4", 4, newAdaptationSet(5, representations[1][0])));
  DashManifest copyManifest =
      sourceManifest.copy(Arrays.asList(new StreamKey(0, 0, 0), new StreamKey(1, 0, 0)));
  DashManifest expectedManifest =
      newDashManifest(
          10,
          newPeriod("1", 1, newAdaptationSet(2, representations[0][0])),
          newPeriod("4", 4, newAdaptationSet(5, representations[1][0])));
  assertManifestEquals(expectedManifest, copyManifest);
}