### Question:
NotifyDataSetChangedCallbacks extends Callbacks { @Override public void onSuccess() { adapter.notifyDataSetChanged(); } NotifyDataSetChangedCallbacks(BaseAdapter adapter); @Override void onSuccess();  }### Answer:
@Test public void onSuccessShouldNotifyDataSetChanged() throws Exception { notifyDataSetChangedCallbacks.onSuccess(); assertThat(testListAdapter.notifyDataSetChangedWasCalled, equalTo(true)); }