### Question:
Paging { public static Paging at(final int offset, final int limit) { return new Paging(offset, limit); } private  Paging(final int myOffset, final int myLimit); static Paging at(final int offset, final int limit); Paging previous(); Paging next(); static final Paging DEFAULT_START; }### Answer:
@Test public void at() { Paging paging = Paging.at(0, 1); assertThat(paging.getOffset(), is(0)); assertThat(paging.getLimit(), is(1)); }
@Test(expected = IllegalArgumentException.class) public void atWithZeroLimit() { Paging.at(0, 0); }
@Test(expected = IllegalArgumentException.class) public void atWithNegativeOffset() { Paging.at(-1, 1); }