Suppliers { @NonNull public static <T, F> Supplier<T> functionAsSupplier( @NonNull final Function<F, T> function, @NonNull final F from) { return new FunctionToSupplierConverter<>(function, from); } private  Suppliers(); @NonNull static Supplier<T> staticSupplier(@NonNull final T object); @NonNull static Supplier<T> functionAsSupplier(
      @NonNull final Function<F, T> function, @NonNull final F from);  }
@Test public void shouldRunFactoryWithFromObjectAndReturnFactoryOutputForFunctionWithSupplier() { assertThat(functionAsSupplier(mockFunction, ITEM), gives(RETURN_ITEM)); }