public void setNickname() {
    Employee e = getTestEmployee();
    if (e == null) {
      return;
    }
    final String nickname = nicknameEditText.getText().toString().trim();
    e.setNickname(nickname);
    employeeConnector.updateEmployee(
        e,
        new EmployeeConnector.EmployeeCallback<Employee>() {
          @Override
          public void onServiceSuccess(Employee result, ResultStatus status) {
            if (status.getStatusCode() / 100 == 2) {
              toast("Successfully set the test employee nickname to '" + nickname + "'.");
            } else {
              toast("Unable to set the test employee nickname: " + status.getStatusMessage());
            }
          }

          @Override
          public void onServiceFailure(ResultStatus status) {
            toast("Unable to set the test employee nickname: " + status.getStatusMessage());
          }
        });
  }
  private void createTestEmployee() {
    Employee employee = null;
    employee = new Employee();
    employee.setName(TEST_EMPLOYEE_NAME);
    employee.setNickname("Tester");
    employee.setCustomId("test123");
    employee.setEmail("*****@*****.**");
    employee.setPin("123456");
    employee.setRole(AccountRole.EMPLOYEE);
    employeeConnector.createEmployee(
        employee,
        new EmployeeConnector.EmployeeCallback<Employee>() {
          @Override
          public void onServiceSuccess(Employee result, ResultStatus status) {
            if (status.getStatusCode() / 100 != 2) {
              toast("Unable to create employee: " + status.getStatusMessage());
              return;
            }
            toast("Successfully created test employee.");
          }

          @Override
          public void onServiceFailure(ResultStatus status) {
            toast("Unable to create test employee: " + status.getStatusMessage());
          }
        });
  }