@Test
public void testListQuery() {

  ResourceListQueryImpl query = new ResourceListQueryImpl();
  query.setLimit(0);
  query.setOffset(0);
  Assert.assertEquals(5, contributorsListProvider.getList(ContributorsListProvider.NAMES_TO_USERNAMES, query).size());
  query.setOffset(3);
  Assert.assertEquals(2, contributorsListProvider.getList(ContributorsListProvider.NAMES_TO_USERNAMES, query).size());
  query.setOffset(0);
  query.setLimit(1);
  Assert.assertEquals(1, contributorsListProvider.getList(ContributorsListProvider.NAMES_TO_USERNAMES, query).size());
}