Project now using and requiring Java 8. Allows Stub to use a function argument as predicate for which fields to stub