CollectionView extends FrameLayout { void hideRefreshing() { refreshLayout.setRefreshing(false); } CollectionView(
      @NonNull Context context,
      @Nullable AttributeSet attrs); @SuppressWarnings("unchecked") @Override void onAttachedToWindow(); @Override void onDetachedFromWindow(); void setAdapter(@NonNull Adapter adapter);  }
@Test public void testHideRefreshing() throws Exception { tested.hideRefreshing(); assertThat(tested.refreshLayout.isRefreshing()).isFalse(); }