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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockIncomeRangeViewService.addException(exception);
  try {
    IncomeRangeViewName resourceName =
        IncomeRangeViewName.of("[CUSTOMER]", "[INCOME_RANGE_VIEW]");
    client.getIncomeRangeView(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}