public List<String> pathCapabilities() {
    return namesToValues.keySet().stream()
        .filter(this::hasCapability)
        .collect(Collectors.toList());
  }
@Test
  public void testStarEntry() {
    flagSet = flagSetFromConfig("*", false);
    assertFlags(SimpleEnum.a, SimpleEnum.b, SimpleEnum.c);
    assertHasCapability(CAPABILITY_A);
    assertHasCapability(CAPABILITY_B);
    Assertions.assertThat(flagSet.pathCapabilities())
        .describedAs("path capabilities of %s", flagSet)
        .containsExactlyInAnyOrder(CAPABILITY_A, CAPABILITY_B, CAPABILITY_C);
  }