@Test public void shouldAllowInjection() { List<ClusterProcess> dummyList = new ArrayList<>(); assertEquals(dummyList, new ClusterContainers(dummyList).getContainers()); }
public List<ClusterProcess> getContainers() { return containers; }
ClusterContainers { public List<ClusterProcess> getContainers() { return containers; } }
ClusterContainers { public List<ClusterProcess> getContainers() { return containers; } ClusterContainers();  ClusterContainers(List<ClusterProcess> containers); }
ClusterContainers { public List<ClusterProcess> getContainers() { return containers; } ClusterContainers();  ClusterContainers(List<ClusterProcess> containers); ClusterContainers add(ClusterProcess container); List<ClusterProcess> getContainers(); @SuppressWarnings("unchecked") Optional<T> getOne(Predicate<ClusterProcess> filter); Boolean isPresent(Predicate<ClusterProcess> filter); }
ClusterContainers { public List<ClusterProcess> getContainers() { return containers; } ClusterContainers();  ClusterContainers(List<ClusterProcess> containers); ClusterContainers add(ClusterProcess container); List<ClusterProcess> getContainers(); @SuppressWarnings("unchecked") Optional<T> getOne(Predicate<ClusterProcess> filter); Boolean isPresent(Predicate<ClusterProcess> filter);  }