### Question:
NetworkUserController implements ParseUserController { @Override public Task<ParseUser.State> signUpAsync( final ParseObject.State state, ParseOperationSet operations, String sessionToken) { JSONObject objectJSON = coder.encode(state, operations, PointerEncoder.get()); ParseRESTCommand command = ParseRESTUserCommand.signUpUserCommand( objectJSON, sessionToken, revocableSession); return command.executeAsync(client).onSuccess(new Continuation<JSONObject, ParseUser.State>() { @Override public ParseUser.State then(Task<JSONObject> task) throws Exception { JSONObject result = task.getResult(); return coder.decode(new ParseUser.State.Builder(), result, ParseDecoder.get()) .isComplete(false) .isNew(true) .build(); } }); } NetworkUserController(ParseHttpClient client);  NetworkUserController(ParseHttpClient client, boolean revocableSession); @Override Task<ParseUser.State> signUpAsync(
      final ParseObject.State state,
      ParseOperationSet operations,
      String sessionToken); @Override Task<ParseUser.State> logInAsync(
      String username, String password); @Override Task<ParseUser.State> logInAsync(
      ParseUser.State state, ParseOperationSet operations); @Override Task<ParseUser.State> logInAsync(
      final String authType, final Map<String, String> authData); @Override Task<ParseUser.State> getUserAsync(String sessionToken); @Override Task<Void> requestPasswordResetAsync(String email);  }### Answer:
@Test public void testSignUpAsync() throws Exception { JSONObject mockResponse = generateBasicMockResponse(); ParseHttpClient restClient = ParseTestUtils.mockParseHttpClientWithResponse(generateBasicMockResponse(), 200, "OK"); ParseUser.State state = new ParseUser.State.Builder() .put("username", "testUserName") .put("password", "testPassword") .build(); ParseOperationSet operationSet = new ParseOperationSet(); operationSet.put("username", new ParseSetOperation("testUserName")); operationSet.put("password", new ParseSetOperation("testPassword")); NetworkUserController controller = new NetworkUserController(restClient, true); ParseUser.State newState = ParseTaskUtils.wait( controller.signUpAsync(state, operationSet, "sessionToken")); verifyBasicUserState(mockResponse, newState); assertFalse(newState.isComplete()); assertTrue(newState.isNew()); }