@Test public void testLast() throws IOException { assertNull(target.last()); when(delegate.last()).thenReturn(entry); assertNotNull(target.last()); }
@Test public void testPreviousLong() throws IOException { assertNull(target.previous(1)); when(delegate.previous(1)).thenReturn(entry); assertNotNull(target.previous(1)); }
@Test public void testNextLong() throws IOException { assertNull(target.next(1)); when(delegate.next(1)).thenReturn(entry); assertNotNull(target.next(1)); }
@Test public void testClose() throws IOException { target.close(); verify(delegate).close(); }