### Question:
InfrastructureInfoResource { @GET @Path("/meta") public Response getVersion(@Auth UserInfo userInfo) { return Response.ok(infrastructureInfoService.getInfrastructureMetaInfo()) .build(); } @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 getInfrastructureMeta() { when(infrastructureInfoService.getInfrastructureMetaInfo()).thenReturn( InfrastructureMetaInfoDTO.builder() .version("1.0").build()); final Response response = resources.getJerseyTest() .target("/infrastructure/meta") .request() .header("Authorization", "Bearer " + TOKEN) .get(); final InfrastructureMetaInfoDTO infrastructureMetaInfoDTO = response.readEntity(InfrastructureMetaInfoDTO.class); assertEquals("1.0", infrastructureMetaInfoDTO.getVersion()); }