### Question:
PressState extends State { @Override public void detach(@NonNull final StateDraweeView view) { view.setOnTouchListener(null); }  @Override void attach(@NonNull final StateDraweeView view); @Override void detach(@NonNull final StateDraweeView view); static final int STATE_RELEASED; static final int STATE_PRESSED; }### Answer:
@Test public void test_Detach() { StateDraweeView view = Mockito.spy(new StateDraweeView(RuntimeEnvironment.application)); PressState state = new PressState(); state.detach(view); Mockito.verify(view).setOnTouchListener(null); }