PresenterLifeCycleLinker { public void registerPresenter(RosiePresenter presenter) { if (presenter == null) { throw new IllegalArgumentException("The presenter instance to be registered can't be null"); } presenters.add(presenter); }  void initializeLifeCycle(Object source, RosiePresenter.View view); void initializePresenters(); void updatePresenters(RosiePresenter.View view); void pausePresenters(); void destroyPresenters(); void registerPresenter(RosiePresenter presenter); void setView(RosiePresenter.View view);  }
@Test(expected = IllegalArgumentException.class) public void shouldNotAcceptNullPresentersToRegister() { PresenterLifeCycleLinker presenterLifeCycleLinker = givenAPresenterLifecycleLinker(); presenterLifeCycleLinker.registerPresenter(null); }