### Question:
NoPagination implements Pagination { @Override public Criteria addPagination(Criteria criteria) { return criteria; }  @Override Criteria addPagination(Criteria criteria); @Override Query addPagination(Query query);  }### Answer:
@Test public void addPaginationCriteria() { Pages.NONE.addPagination(criteria); verify(criteria, never()).setFirstResult(anyInt()); verify(criteria, never()).setMaxResults(anyInt()); }
@Test public void addPaginationQuery() { Pages.NONE.addPagination(query); verify(query, never()).setFirstResult(anyInt()); verify(query, never()).setMaxResults(anyInt()); }