when(partialMockCurrentUser.getPassword()).thenReturn("oldPassword");
<BUG>when(partialMockCurrentUser.getSessionToken()).thenReturn("oldSessionToken");
ParseException saveException = new ParseException(ParseException.OTHER_CAUSE, "");</BUG>
doReturn(Task.<Void>forError(saveException))
.when(partialMockCurrentUser)
<BUG>.saveAsync(anyString(), Matchers.<Task<Void>>any());
</BUG>
ParseCurrentUserController currentUserController = mock(ParseCurrentUserController.class);
when(currentUserController.getAsync(anyBoolean()))
.thenReturn(Task.forResult(partialMockCurrentUser));

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))
.when(partialMockCurrentUser)
.saveAsync(anyString(), eq(false), Matchers.<Task<Void>>any());
ParseCurrentUserController currentUserController = mock(ParseCurrentUserController.class);
when(currentUserController.getAsync(anyBoolean()))
.thenReturn(Task.forResult(partialMockCurrentUser));
