facebookAuthData.put("facebookToken", "facebookTest");
Task<Void> linkTask =
partialMockUser.linkWithAsync(facebookAuthType, facebookAuthData, "sessionTokenAgain");
linkTask.waitForCompletion();
assertSame(facebookAuthData, partialMockUser.getAuthData().get("facebook"));
<BUG>verify(partialMockUser, times(1)).saveAsync(eq("sessionTokenAgain"), Matchers.<Task<Void>>any());
assertSame(anonymousAuthData, partialMockUser.getAuthData().get(ParseAnonymousUtils.AUTH_TYPE));</BUG>
assertSame(saveException, linkTask.getError());
<BUG>}
@Test
public void testResolveLazinessAsyncWithNotLazyUser() throws Exception {
ParseUser user = new ParseUser();
ParseTaskUtils.wait(user.resolveLazinessAsync(Task.<Void>forResult(null)));</BUG>
}

facebookAuthData.put("facebookToken", "facebookTest");
Task<Void> linkTask =
partialMockUser.linkWithAsync(facebookAuthType, facebookAuthData, "sessionTokenAgain");
linkTask.waitForCompletion();
assertSame(facebookAuthData, partialMockUser.getAuthData().get("facebook"));
verify(partialMockUser, times(1))
.saveAsync(eq("sessionTokenAgain"), eq(false), Matchers.<Task<Void>>any());
assertSame(anonymousAuthData, partialMockUser.getAuthData().get(ParseAnonymousUtils.AUTH_TYPE));
assertSame(saveException, linkTask.getError());
}
