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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockAdParameterService.addException(exception);
  try {
    AdParameterName resourceName = AdParameterName.of("[CUSTOMER]", "[AD_PARAMETER]");
    client.getAdParameter(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}