@Before public void setup() { MockitoAnnotations.initMocks(this); keepClick(); presenter = spy(new MyOtherPresenter()); presenter.onAttach(parent); presenter.onViewCreated(view, null); }