AssistantFragment extends Fragment { @Override public void onDestroyView() { unbinder.unbind(); super.onDestroyView(); }  static AssistantFragment newInstance(); @Override void onCreate(Bundle savedInstanceState); @Override View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState); @Override void onDestroyView(); void addReading(); void startExportActivity(); void startA1CCalculatorActivity(); void openSupportDialog();  }
@Test public void ShouldUnBindViews_WhenDestroyed() throws Exception { fragment.onDestroyView(); assertThat(fragment.archivedButton).isNull(); assertThat(fragment.archivedDismissButton).isNull(); assertThat(fragment.tipsRecycler).isNull(); }