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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockParentalStatusViewService.addException(exception);
  try {
    ParentalStatusViewName resourceName =
        ParentalStatusViewName.of("[CUSTOMER]", "[PARENTAL_STATUS_VIEW]");
    client.getParentalStatusView(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}