### Question:
InfraActiveRequestsRepositoryCustomController { @GetMapping(value = "/infraActiveRequests/getInProgressVolumeGroupsAndVfModules") public List<InfraActiveRequests> getInProgressVolumeGroupsAndVfModules() { return infraActiveRequestsRepository.getInProgressVolumeGroupsAndVfModules(); }  @PostMapping(value = "/infraActiveRequests/getCloudOrchestrationFiltersFromInfraActive") List<InfraActiveRequests> getCloudOrchestrationFiltersFromInfraActive(
            @RequestBody Map<String, String> orchestrationMap); @PostMapping(value = "/infraActiveRequests/getOrchestrationFiltersFromInfraActive") List<InfraActiveRequests> getOrchestrationFiltersFromInfraActive(
            @RequestBody Map<String, List<String>> orchestrationMap); @GetMapping(value = "/infraActiveRequests/checkVnfIdStatus/{operationalEnvironmentId}") InfraActiveRequests checkVnfIdStatus(
            @PathVariable("operationalEnvironmentId") String operationalEnvironmentId); @PostMapping(value = "/infraActiveRequests/checkInstanceNameDuplicate") InfraActiveRequests checkInstanceNameDuplicate(
            @RequestBody InstanceNameDuplicateCheckRequest instanceNameDuplicateCheckRequest); @PostMapping(value = "/infraActiveRequests/v1/getInfraActiveRequests") List<InfraActiveRequests> getInfraActiveRequests(@RequestBody Map<String, String[]> filters,
            @RequestParam("from") long startTime, @RequestParam("to") long endTime,
            @RequestParam(value = "maxResult", required = false) Integer maxResult); @GetMapping(value = "/infraActiveRequests/getInProgressVolumeGroupsAndVfModules") List<InfraActiveRequests> getInProgressVolumeGroupsAndVfModules();  }### Answer:
@Test public void getInProgressVolumeGroupsAndVfModulesTest() { boolean expectedReturned = false; InfraActiveRequests request = new InfraActiveRequests(); request.setRequestId(UUID.randomUUID().toString()); request.setVfModuleId(UUID.randomUUID().toString()); request.setRequestStatus("IN_PROGRESS"); request.setRequestScope(ModelType.vfModule.toString()); Instant startInstant = Instant.now().minus(3, ChronoUnit.MINUTES); request.setStartTime(Timestamp.from(startInstant)); request.setRequestAction("create"); saveInfraActiveRequest(request); UriComponentsBuilder builder = UriComponentsBuilder .fromHttpUrl(createURLWithPort("/infraActiveRequests/getInProgressVolumeGroupsAndVfModules")); HttpEntity<String> entity = new HttpEntity<String>(headers); ResponseEntity<List<InfraActiveRequests>> response = restTemplate.exchange(builder.toUriString(), HttpMethod.GET, entity, new ParameterizedTypeReference<List<InfraActiveRequests>>() {}); List<InfraActiveRequests> responseList = response.getBody(); assertEquals(200, response.getStatusCodeValue()); for (InfraActiveRequests result : responseList) { if (result.getRequestId().equals(request.getRequestId())) { assertThat(request, sameBeanAs(result).ignoring("modifyTime")); expectedReturned = true; } } assertTrue(expectedReturned); }