### Question:
HyperGeometricAnalyzer { AnalyzeRequest processRequest(AnalyzeRequest request) throws Exception { String resolvedOntologyClass = resolveCurieToIri(request.getOntologyClass()); Collection<String> resolvedSamples = new ArrayList<String>(); for (String sample : request.getSamples()) { resolvedSamples.add(resolveCurieToIri(sample)); } AnalyzeRequest resolvedAnalyzeRequest = new AnalyzeRequest(); resolvedAnalyzeRequest.setSamples(resolvedSamples); resolvedAnalyzeRequest.setPath(request.getPath()); resolvedAnalyzeRequest.setOntologyClass(resolvedOntologyClass); return resolvedAnalyzeRequest; } @Inject  HyperGeometricAnalyzer(GraphDatabaseService graphDb, CurieUtil curieUtil, Graph graph,
      CypherUtil cypherUtil); List<AnalyzerResult> analyze(AnalyzeRequest request);  }### Answer:
@Test public void processRequestDoesNotMutate() throws Exception { AnalyzeRequest request = new AnalyzeRequest(); request.setPath("pizza:foo"); request.setOntologyClass("pizza:bar"); analyzer.processRequest(request); assertThat(request.getPath(), is("pizza:foo")); assertThat(request.getOntologyClass(), is("pizza:bar")); }