EntitiesPagedList extends EntitiesList<T> { @Override public void clear() { super.clear(); entities = null; callback = null; currentPage = -1; } @Inject  EntitiesPagedList(LoadingBox loadingBox,
                             View view); void show(final Collection<T> entities,
                     final Callback<T> callback); @Override void clear();  }
@Test public void testClear() throws Exception { super.testClear(); assertEquals(-1, presenter.currentPage); }