LoginPresenter extends BasePresenter<LoginPresenter.ViewContract> implements Bundleable { public void updatePassword(String password) { this.password = password; } @Inject  LoginPresenter(); void updateUsername(String username); void updatePassword(String password); void login(); @Override Bundle toBundle(); @Override void fromBundle(@Nullable Bundle bundle);  }
@Test public void updatePassword() throws Exception { loginPresenter.password = ""; loginPresenter.updatePassword("World"); assertThat(loginPresenter.password).isEqualTo("World"); }