@SuppressFBWarnings(value = "EI_EXPOSE_REP2")
  public void setLocalCommandsQueryAppIds(final Set<String> ids) {
    this.localCommandsQueryAppIds = Optional.of(ids);
  }
@Test
    public void shouldOnlyReturnTrueForPresentLocalCommands() {
        // Given:
        Set<String> localCommands = new HashSet<>(ALL_APP_IDS.subList(0, 3));
        service.setLocalCommandsQueryAppIds(localCommands);

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

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