@Test public void testLast() throws IOException { assertNull(target.last()); when(delegate.last()).thenReturn(entry); assertNotNull(target.last()); }