public void testSignUpAsyncWithMergeInDiskAnonymousUserSaveFailure() throws Exception {
ParseUser currentUser = new ParseUser();
Map<String, String> oldAnonymousAuthData = new HashMap<>();
oldAnonymousAuthData.put("oldKey", "oldToken");
currentUser.putAuthData(ParseAnonymousUtils.AUTH_TYPE, oldAnonymousAuthData);
<BUG>ParseUser partialMockCurrentUser = spy(currentUser);
</BUG>
when(partialMockCurrentUser.getUsername()).thenReturn("oldUserName");
when(partialMockCurrentUser.getPassword()).thenReturn("oldPassword");
<BUG>when(partialMockCurrentUser.getSessionToken()).thenReturn("oldSessionToken");
ParseException saveException = new ParseException(ParseException.OTHER_CAUSE, "");</BUG>
doReturn(Task.<Void>forError(saveException))

public void testSignUpAsyncWithMergeInDiskAnonymousUserSaveFailure() throws Exception {
ParseUser currentUser = new ParseUser();
Map<String, String> oldAnonymousAuthData = new HashMap<>();
oldAnonymousAuthData.put("oldKey", "oldToken");
currentUser.putAuthData(ParseAnonymousUtils.AUTH_TYPE, oldAnonymousAuthData);
ParseUser partialMockCurrentUser = spy(currentUser); // Spy since we need mutex
when(partialMockCurrentUser.getUsername()).thenReturn("oldUserName");
when(partialMockCurrentUser.getPassword()).thenReturn("oldPassword");
when(partialMockCurrentUser.getSessionToken()).thenReturn("oldSessionToken");
when(partialMockCurrentUser.isLazy()).thenReturn(false);
ParseException saveException = new ParseException(ParseException.OTHER_CAUSE, "");
doReturn(Task.<Void>forError(saveException))
