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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockCustomerExtensionSettingService.addException(exception);
  try {
    CustomerExtensionSettingName resourceName =
        CustomerExtensionSettingName.of("[CUSTOMER]", "[CUSTOMER_EXTENSION_SETTING]");
    client.getCustomerExtensionSetting(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}