@Test public void testFlowStateAutocomplete() throws IOException { assertThat( _manager.autoComplete("network", "snapshot", Type.FLOW_STATE, "e", 5).stream() .map(AutocompleteSuggestion::getText) .collect(Collectors.toSet()), equalTo(ImmutableSet.of(ESTABLISHED.toString(), RELATED.toString(), NEW.toString()))); }