@Test
@SuppressWarnings("all")
public void uploadUserDataExceptionTest() throws Exception {

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockUserDataService.addException(exception);
  try {
    String customerId = "customerId-1772061412";
    List<UserDataOperation> operations = new ArrayList<>();
    UploadUserDataRequest request =
        UploadUserDataRequest.newBuilder()
            .setCustomerId(customerId)
            .addAllOperations(operations)
            .build();
    client.uploadUserData(request);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}