### Question:
Exercise4 { static <A> A last(final List<A> list) { throw new UnsupportedOperationException("Exercise 4 last is missing!"); }    }### Answer:
@Test public void shouldFindLastElement() { final List<Integer> list = asList(0, 1, 2, 3, 4, 5, 6); final Integer expected = 6; final Integer actual = Exercise4.last(list); assertThat(actual, is(expected)); }