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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockDetailPlacementViewService.addException(exception);
  try {
    DetailPlacementViewName resourceName =
        DetailPlacementViewName.of("[CUSTOMER]", "[DETAIL_PLACEMENT_VIEW]");
    client.getDetailPlacementView(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}