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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockExtensionFeedItemService.addException(exception);
  try {
    ExtensionFeedItemName resourceName =
        ExtensionFeedItemName.of("[CUSTOMER]", "[EXTENSION_FEED_ITEM]");
    client.getExtensionFeedItem(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}