public void registerRunningQuery(final String appId) {
    queriesGuaranteedToBeRunningAtSomePoint.add(appId);
  }
@Test
    public void shouldReturnFalseForQueriesNotGuaranteedToBeRunningAtSomePoint() {
        // Given:
        ALL_APP_IDS.subList(0, 3).forEach(id -> service.registerRunningQuery(id));

        // When:
        List<Boolean> results = ALL_APP_IDS.stream()
                .map(service::wasQueryGuaranteedToBeRunningAtSomePoint)
                .collect(Collectors.toList());

        // Then:
        results.subList(0, 3).forEach(result -> assertEquals(result, true));
        results.subList(3, 5).forEach(result -> assertEquals(result, false));
    }