### Question:
EnableState extends BinaryState { @Override public void detach(@NonNull final StateDraweeView view) { view.setOnEnabledListener(null); }  @Override void attach(@NonNull final StateDraweeView view); @Override void detach(@NonNull final StateDraweeView view);  }### Answer:
@Test public void test_Detach() { StateDraweeView view = Mockito.spy(new StateDraweeView(RuntimeEnvironment.application)); EnableState state = new EnableState(); state.detach(view); Mockito.verify(view).setOnEnabledListener(null); }