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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockBatchJobService.addException(exception);
  try {
    BatchJobName resourceName = BatchJobName.of("[CUSTOMER]", "[BATCH_JOB]");
    client.listBatchJobResults(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}