### Question:
AddAnimalPresenter extends BasePresenter<AddAnimalContract.View> implements AddAnimalContract.Presenter<AddAnimalContract.View> { @Override public void addNewDog(DogFirebase dogFirebase) { firebaseRepository.addNew(dogFirebase); } AddAnimalPresenter(Repository.Firebase<DogFirebase> repository); @Override String generateUniqueID(); @Override void addNewDog(DogFirebase dogFirebase);  }### Answer:
@Test public void should_be_one_dog_after_save() { InMemoryDogRepository repository = InMemoryDogRepository.getInstance(); AddAnimalPresenter presenter = new AddAnimalPresenter(repository); presenter.attachView(mockView); presenter.addNewDog(new DogFirebase()); assertThat(repository.getCachedDogs().size(), is(1)); }