@Test
public void testListQuery() {

  ResourceListQueryImpl query = new ResourceListQueryImpl();
  query.setLimit(0);
  query.setOffset(0);
  Assert.assertEquals(4, usersListProvider.getList(UsersListProvider.USERNAME, query).size());
  query.setOffset(3);
  Assert.assertEquals(1, usersListProvider.getList(UsersListProvider.USERNAME, query).size());
  query.setOffset(0);
  query.setLimit(1);
  Assert.assertEquals(1, usersListProvider.getList(UsersListProvider.USERNAME, query).size());
}