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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockTopicConstantService.addException(exception);
  try {
    TopicConstantName resourceName = TopicConstantName.of("[TOPIC_CONSTANT]");
    client.getTopicConstant(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}