### Question:
ParseAuthenticationManager { public Task<Void> deauthenticateAsync(String authType) { final AuthenticationCallback callback; synchronized (lock) { callback = this.callbacks.get(authType); } if (callback != null) { return Task.call(new Callable<Void>() { @Override public Void call() throws Exception { callback.onRestore(null); return null; } }, ParseExecutors.io()); } return Task.forResult(null); } ParseAuthenticationManager(ParseCurrentUserController controller); void register(final String authType, AuthenticationCallback callback); Task<Boolean> restoreAuthenticationAsync(String authType, final Map<String, String> authData); Task<Void> deauthenticateAsync(String authType);  }### Answer:
@Test public void testDeauthenticateAsync() throws ParseException { when(controller.getAsync(false)).thenReturn(Task.<ParseUser>forResult(null)); manager.register("test_provider", provider); ParseTaskUtils.wait(manager.deauthenticateAsync("test_provider")); verify(provider).onRestore(null); }