CandidateComputations { public static List<String> getComputationsNames() { return getComputations().stream().map(CandidateComputation::getName).collect(Collectors.toList()); } private  CandidateComputations(); static List<CandidateComputation> getComputations(); static List<String> getComputationsNames(); static Optional<CandidateComputation> getComputation(String name);  }
@Test public void listComputationsNames() { assertTrue(ImmutableSet.copyOf(CandidateComputations.getComputationsNames()).containsAll(ImmutableSet.of("dummy", "loadflow"))); }
@Test public void listComputations() { assertTrue(ImmutableSet.copyOf(CandidateComputations.getComputationsNames()).containsAll(ImmutableSet.of("dummy", "loadflow"))); assertEquals(ImmutableSet.of("dummy", "loadflow"), ImmutableSet.copyOf(CandidateComputations.getComputationsNames())); }