LimitAdapter extends PowerAdapterWrapper { public int getLimit() { return mLimit; } LimitAdapter(@NonNull PowerAdapter adapter);  LimitAdapter(@NonNull PowerAdapter adapter, int limit); int getLimit(); void setLimit(int limit); @Override int getItemCount(); @Override long getItemId(int position); @NonNull @Override Object getItemViewType(int position); @Override boolean isEnabled(int position);  }
@Test public void negativeLimitClamped() { assertThat(new LimitAdapter(mFakeAdapter, -50).getLimit()).isEqualTo(0); }