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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockProductGroupViewService.addException(exception);
  try {
    ProductGroupViewName resourceName =
        ProductGroupViewName.of("[CUSTOMER]", "[PRODUCT_GROUP_VIEW]");
    client.getProductGroupView(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}