I am just trying to call a method with one parameter which is a list from stream api call:
submit(animals.stream().filter(a -> !invalidNames.contains(a.getName