@Test
@SuppressWarnings("all")
public void listOperationsTest() {

  String nextPageToken = "";
  Operation operationsElement = Operation.newBuilder().build();
  List<Operation> operations = Arrays.asList(operationsElement);
  ListOperationsResponse expectedResponse =
      ListOperationsResponse.newBuilder()
          .setNextPageToken(nextPageToken)
          .addAllOperations(operations)
          .build();
  mockOperations.addResponse(expectedResponse);
  String name = "name3373707";
  String filter = "filter-1274492040";
  ListOperationsPagedResponse pagedListResponse = client.listOperations(name, filter);
  List<Operation> resources = Lists.newArrayList(pagedListResponse.iterateAll());
  Assert.assertEquals(1, resources.size());
  Assert.assertEquals(expectedResponse.getOperationsList().get(0), resources.get(0));
  List<AbstractMessage> actualRequests = mockOperations.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  ListOperationsRequest actualRequest = (ListOperationsRequest) actualRequests.get(0);
  Assert.assertEquals(name, actualRequest.getName());
  Assert.assertEquals(filter, actualRequest.getFilter());
}