PaginationSupport<Entry> ps = new PaginationSupport<Entry>(list, list.size());
expect(entryServiceMock.search(EasyMock.anyObject(Condition.class), EasyMock.capture(captureRange), EasyMock.anyObject(Sorter.class))).andReturn(ps)
.once();
Entries entries = new Entries(entryServiceMock);
entries.setP(2);
entries.setSize(5);
replay(entryServiceMock);
entries.get();
Assert.assertEquals(1, entries.getEntries().size());
Assert.assertEquals(5, captureRange.getValue().getSize());
Assert.assertEquals(5, captureRange.getValue().getStart());
Assert.assertEquals(10, captureRange.getValue().getEnd());
verify(entryServiceMock);