Program: 58212
Project: 58212
Buggy source:
@Test public void masterPlaylistWithIFrames() throws IOException, ParseException {
  Playlist playlist=readPlaylist("String_Node_Str");
  String sPlaylist=writePlaylist(playlist);
  System.out.println(sPlaylist);
}

Fixed version (ground truth):
@Test public void masterPlaylistWithIFrames() throws IOException, ParseException {
  Playlist playlist=readPlaylist("String_Node_Str");
  assertTrue(playlist.hasMasterPlaylist());
  MasterPlaylist masterPlaylist=playlist.getMasterPlaylist();
  assertNotNull(masterPlaylist);
  List<PlaylistData> playlistDatas=masterPlaylist.getPlaylists();
  assertNotNull(playlistDatas);
  assertEquals(7,playlistDatas.size());
  PlaylistData lowXStreamInf=playlistDatas.get(0);
  assertNotNull(lowXStreamInf);
  assertNotNull(lowXStreamInf.getStreamInfo());
  assertEquals(1280000,lowXStreamInf.getStreamInfo().getBandwidth());
  assertEquals("String_Node_Str",lowXStreamInf.getLocation());
  assertNull(lowXStreamInf.getStreamInfo().getUri());
  PlaylistData lowXIFrameStreamInf=playlistDatas.get(1);
  assertNotNull(lowXIFrameStreamInf);
  assertNotNull(lowXIFrameStreamInf.getStreamInfo());
  assertEquals(86000,lowXIFrameStreamInf.getStreamInfo().getBandwidth());
  assertEquals("String_Node_Str",lowXIFrameStreamInf.getStreamInfo().getUri());
  PlaylistData midXStreamInf=playlistDatas.get(2);
  assertNotNull(midXStreamInf);
  assertNotNull(midXStreamInf.getStreamInfo());
  assertEquals(2560000,midXStreamInf.getStreamInfo().getBandwidth());
  assertEquals("String_Node_Str",midXStreamInf.getLocation());
  assertNull(midXStreamInf.getStreamInfo().getUri());
  PlaylistData midXIFrameStreamInf=playlistDatas.get(3);
  assertNotNull(midXIFrameStreamInf);
  assertNotNull(midXIFrameStreamInf.getStreamInfo());
  assertEquals(150000,midXIFrameStreamInf.getStreamInfo().getBandwidth());
  assertEquals("String_Node_Str",midXIFrameStreamInf.getStreamInfo().getUri());
  PlaylistData hiXStreamInf=playlistDatas.get(4);
  assertNotNull(hiXStreamInf);
  assertNotNull(hiXStreamInf.getStreamInfo());
  assertEquals(7680000,hiXStreamInf.getStreamInfo().getBandwidth());
  assertEquals("String_Node_Str",hiXStreamInf.getLocation());
  assertNull(hiXStreamInf.getStreamInfo().getUri());
  PlaylistData hiXIFrameStreamInf=playlistDatas.get(5);
  assertNotNull(hiXIFrameStreamInf);
  assertNotNull(hiXIFrameStreamInf.getStreamInfo());
  assertEquals(550000,hiXIFrameStreamInf.getStreamInfo().getBandwidth());
  assertEquals("String_Node_Str",hiXIFrameStreamInf.getStreamInfo().getUri());
  PlaylistData audioXStreamInf=playlistDatas.get(6);
  assertNotNull(audioXStreamInf);
  assertNotNull(audioXStreamInf.getStreamInfo());
  assertEquals(65000,audioXStreamInf.getStreamInfo().getBandwidth());
  assertNotNull(audioXStreamInf.getStreamInfo().getCodecs());
  assertEquals(1,audioXStreamInf.getStreamInfo().getCodecs().size());
  assertEquals("String_Node_Str",audioXStreamInf.getStreamInfo().getCodecs().get(0));
  assertEquals("String_Node_Str",audioXStreamInf.getLocation());
  assertNull(audioXStreamInf.getStreamInfo().getUri());
  String writtenPlaylist=writePlaylist(playlist);
  assertEquals("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str",writtenPlaylist);
}