### Question:
InfrastructureInfoResource { @GET @Path("/info") public List<ProjectInfrastructureInfo> getUserResources(@Auth UserInfo userInfo) { return infrastructureInfoService.getUserResources(userInfo); } @Inject  InfrastructureInfoResource(InfrastructureInfoService infrastructureInfoService); @GET Response status(); @GET @Path("/status") HealthStatusPageDTO status(@Auth UserInfo userInfo,
									  @QueryParam("full") @DefaultValue("0") int fullReport); @GET @Path("/info") List<ProjectInfrastructureInfo> getUserResources(@Auth UserInfo userInfo); @GET @Path("/meta") Response getVersion(@Auth UserInfo userInfo);  }### Answer:
@Test public void getUserResourcesWithException() { doThrow(new DlabException("Could not load list of provisioned resources for user")) .when(infrastructureInfoService).getUserResources(any(UserInfo.class)); final Response response = resources.getJerseyTest() .target("/infrastructure/info") .request() .header("Authorization", "Bearer " + TOKEN) .get(); assertEquals(HttpStatus.SC_INTERNAL_SERVER_ERROR, response.getStatus()); assertEquals(MediaType.APPLICATION_JSON, response.getHeaderString(HttpHeaders.CONTENT_TYPE)); verify(infrastructureInfoService).getUserResources(any()); verifyNoMoreInteractions(infrastructureInfoService); }