public void setRole() {
    Employee e = getTestEmployee();
    if (e == null) {
      return;
    }
    final String role = roleSpinner.getSelectedItem().toString();
    e.setRole(getRoleFromString(role));
    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 role to '" + role + "'.");
            } else {
              toast("Unable to set the test employee role: " + status.getStatusMessage());
            }
          }

          @Override
          public void onServiceFailure(ResultStatus status) {
            toast("Unable to set the test employee role: " + status.getStatusMessage());
          }
        });
  }
  public void setPin() {
    Employee e = getTestEmployee();
    if (e == null) {
      return;
    }
    final String pin = pinEditText.getText().toString().trim();
    e.setPin(pin);
    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 pin to '" + pin + "'.");
            } else {
              toast("Unable to set the test employee pin: " + status.getStatusMessage());
            }
          }

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