@Test
public void getGoogleAdsErrors_includesWhen_operationSet() throws InvalidProtocolBufferException {

  MockPath path =
      MockPath.newBuilder()
          .setIndex(Int64Value.newBuilder().setValue(0))
          .setFieldName(operationsFieldName)
          .build();
  MockError error = MockError.newBuilder().addLocation(path).build();
  MockFailure failure = MockFailure.newBuilder().addErrors(error).build();
  Status status = Status.newBuilder().addDetails(Any.pack(failure)).build();
  List<MockError> result = impl.getGoogleAdsErrors(0, status);
  assertEquals(1, result.size());
  assertEquals(error, result.get(0));
}