### Question:
Exercise6 { static <A, B> Supplier<B> composeSupplier(final Supplier<A> supplier, final Function1<A, B> function) { throw new UnsupportedOperationException("Exercise 6 composeSupplier is missing!"); }    }### Answer:
@Test public void should_compose_function_with_supplier() { final Supplier<String> supplier = () -> "42"; final Function1<String, Integer> function = Integer::valueOf; final Supplier<Integer> tested = Exercise6.composeSupplier(supplier, function); assertEquals(new Integer(42), tested.get()); }