### Question:
RequestIdFilter implements ContainerRequestFilter { @Override public void filter(ContainerRequestContext context) throws IOException { String requestId = MDC.get(ONAPLogConstants.MDCs.REQUEST_ID); UriInfo uriInfo = context.getUriInfo(); String requestURI = uriInfo.getPath(); if (!requestURI.contains("orchestrationRequests")) { logger.info("Checking if requestId: {} already exists in requestDb InfraActiveRequests table", requestId); InfraActiveRequests infraActiveRequests = infraActiveRequestsClient.getInfraActiveRequestbyRequestId(requestId); if (infraActiveRequests != null) { logger.error( "RequestId: {} already exists in RequestDB InfraActiveRequests table, throwing DuplicateRequestIdException", requestId); throw new DuplicateRequestIdException(createRequestError(requestId, "InfraActiveRequests")); } } }  @Override void filter(ContainerRequestContext context);  }### Answer:
@Test public void filterTestInfraSkipRequestIdLookup() throws IOException { String requestId = REQUEST_ID; MDC.put(ONAPLogConstants.MDCs.REQUEST_ID, requestId); InfraActiveRequests infraActiveRequests = new InfraActiveRequests(); infraActiveRequests.setRequestId(REQUEST_ID); doReturn("onap/so/infra/orchestrationRequests/v7/" + REQUEST_ID).when(uriInfo).getPath(); doReturn(uriInfo).when(mockContext).getUriInfo(); verify(requestsDbClient, never()).getInfraActiveRequestbyRequestId(REQUEST_ID); requestIdFilter.filter(mockContext); }