Program: 29614
Project: 29614
Buggy source:
@Test public void shouldGetPlaylistsForUser_async() throws Exception {
  final String accessToken="String_Node_Str";
  final Api api=Api.builder().build();
  final UserPlaylistsRequest request=api.getPlaylistsForUser("String_Node_Str").accessToken(accessToken).limit(10).offset(2).httpManager(TestUtil.MockedHttpManager.returningJson("String_Node_Str")).build();
  final CountDownLatch asyncCompleted=new CountDownLatch(1);
  final SettableFuture<Paging<PlaylistSimplified>> playlistsPageFuture=request.getAsync();
  Futures.addCallback(playlistsPageFuture,new FutureCallback<Paging<PlaylistSimplified>>(){
    @Override public void onSuccess(    Paging<PlaylistSimplified> playlistsPage){
      assertTrue(playlistsPage.getTotal() >= 0);
      assertNull(playlistsPage.getNext());
      assertEquals("String_Node_Str",playlistsPage.getPrevious());
      assertEquals(10,playlistsPage.getLimit());
      assertEquals(2,playlistsPage.getOffset());
      assertEquals("String_Node_Str",playlistsPage.getHref());
      final PlaylistSimplified simplePlaylist=playlistsPage.getItems().get(0);
      final String playlistId=simplePlaylist.getId();
      assertNotNull(playlistId);
      assertTrue(playlistId.length() > 0);
      assertEquals(false,simplePlaylist.getIsCollaborative());
      assertEquals("String_Node_Str" + playlistId,simplePlaylist.getExternalUrls().get("String_Node_Str"));
      assertNotNull(simplePlaylist.getName());
      assertNotNull(simplePlaylist.getOwner());
      assertNotNull(simplePlaylist.getIsPublicAccess());
      assertNotNull(simplePlaylist.getTracks().getHref());
      assertNotNull(simplePlaylist.getTracks().getTotal());
      assertEquals(ObjectType.PLAYLIST,simplePlaylist.getType());
      assertEquals("String_Node_Str" + playlistId,simplePlaylist.getUri());
      assertEquals(1,simplePlaylist.getImages().size());
      assertEquals("String_Node_Str",simplePlaylist.getImages().get(0).getUrl());
      assertNull(simplePlaylist.getImages().get(0).getWidth());
      assertNull(simplePlaylist.getImages().get(0).getHeight());
      asyncCompleted.countDown();
    }
    @Override public void onFailure(    Throwable throwable){
      fail("String_Node_Str" + throwable.getMessage());
    }
  }
);
  asyncCompleted.await(1,TimeUnit.SECONDS);
}

Fixed version (ground truth):
@Test public void shouldGetPlaylistsForUser_async() throws Exception {
  final String accessToken="String_Node_Str";
  final Api api=Api.builder().build();
  final UserPlaylistsRequest request=api.getPlaylistsForUser("String_Node_Str").accessToken(accessToken).limit(10).offset(2).httpManager(TestUtil.MockedHttpManager.returningJson("String_Node_Str")).build();
  final CountDownLatch asyncCompleted=new CountDownLatch(1);
  final SettableFuture<Paging<PlaylistSimplified>> playlistsPageFuture=request.getAsync();
  Futures.addCallback(playlistsPageFuture,new FutureCallback<Paging<PlaylistSimplified>>(){
    @Override public void onSuccess(    Paging<PlaylistSimplified> playlistsPage){
      assertTrue(playlistsPage.getTotal() >= 0);
      assertNull(playlistsPage.getNext());
      assertEquals("String_Node_Str",playlistsPage.getPrevious());
      assertEquals(10,playlistsPage.getLimit());
      assertEquals(2,playlistsPage.getOffset());
      assertEquals("String_Node_Str",playlistsPage.getHref());
      final PlaylistSimplified simplePlaylist=playlistsPage.getItems().get(0);
      final String playlistId=simplePlaylist.getId();
      assertNotNull(playlistId);
      assertTrue(playlistId.length() > 0);
      assertEquals(false,simplePlaylist.getIsCollaborative());
      assertEquals("String_Node_Str" + playlistId,simplePlaylist.getExternalUrls().get("String_Node_Str"));
      assertNotNull(simplePlaylist.getName());
      assertNotNull(simplePlaylist.getOwner());
      assertNotNull(simplePlaylist.getIsPublicAccess());
      assertNotNull(simplePlaylist.getTracks().getHref());
      assertNotNull(simplePlaylist.getTracks().getTotal());
      assertEquals(ObjectType.PLAYLIST,simplePlaylist.getType());
      assertEquals("String_Node_Str" + playlistId,simplePlaylist.getUri());
      assertEquals(1,simplePlaylist.getImages().size());
      assertEquals("String_Node_Str",simplePlaylist.getImages().get(0).getUrl());
      assertEquals(0,simplePlaylist.getImages().get(0).getWidth());
      assertEquals(0,simplePlaylist.getImages().get(0).getHeight());
      asyncCompleted.countDown();
    }
    @Override public void onFailure(    Throwable throwable){
      fail("String_Node_Str" + throwable.getMessage());
    }
  }
);
  asyncCompleted.await(1,TimeUnit.SECONDS);
}