AddressBookPresenter extends BasePresenter<AddressBookContract.View> implements AddressBookContract.Presenter { @Override public void editAddress(int position) { if (addressEntityList != null && addressEntityList.size() > position) { AddNewAddressActivity.actionStartWithExtraForResult(currentActivity(), addressEntityList.get(position)); } }  List<Address> getAddressEntityList(); void setAddressEntityList(List<Address> addressEntityList); @Override void fetchAddressList(); @Override void deleteAddress(int position); @Override void editAddress(int position); @Override void selectAddress(int position);  }
@Test public void testEditAddress(){ presenter.editAddress(0); }