OffsetAdapter extends PowerAdapterWrapper { public int getOffset() { return mOffset; } OffsetAdapter(@NonNull PowerAdapter adapter);  OffsetAdapter(@NonNull PowerAdapter adapter, int offset); int getOffset(); void setOffset(int offset); @Override int getItemCount();  }
@Test public void negativeOffsetClamped() { assertThat(new OffsetAdapter(mFakeAdapter, -10).getOffset()).isEqualTo(0); }