class PaginatingListComponent extends ListComponent<P, T> {

    @Override
    public int getCount() {
        return super.getCount() + (mShouldShowFooter ? 1 : 0);
    }

}

class PaginatingListComponentTest {

    private PaginatingListComponent<Void, Object> mPaginatingListComponent;

    @Test
    public void addSomeItems() {

        addItems(5);

        assertEquals(9, mPaginatingListComponent.getCount()); // 5 items, 4 dividers
    }

}