OutboundDocQueryAggregator implements NhinAggregator { public void increaseCount(AdhocQueryResponse aggregate) { aggregate.setTotalResultCount(aggregate.getTotalResultCount().add(BigInteger.ONE)); }  void increaseCount(AdhocQueryResponse aggregate); void aggregate(OutboundDocQueryOrchestratable to, OutboundDocQueryOrchestratable from); @Override void aggregate(OutboundOrchestratable to, OutboundOrchestratable from);  }
@Test public void testIncreasingCount() { AdhocQueryResponse aggregatedResponse = new AdhocQueryResponse(); aggregatedResponse.setTotalResultCount(BigInteger.ZERO); nhinAggregator.increaseCount(aggregatedResponse); nhinAggregator.increaseCount(aggregatedResponse); assertTrue(aggregatedResponse.getTotalResultCount().equals(new BigInteger("2"))); }