@Test
public void testCopyRemoveStreamElement() throws Exception {

  Format[][] formats = newFormats(2, 3);
  SsManifest sourceManifest =
      createSsManifest(
          createStreamElement("1", formats[0]), createStreamElement("2", formats[1]));
  List<StreamKey> keys = Collections.singletonList(new StreamKey(1, 0));
  SsManifest copyManifest = sourceManifest.copy(keys);
  SsManifest expectedManifest = createSsManifest(createStreamElement("2", formats[1][0]));
  assertManifestEquals(expectedManifest, copyManifest);
}