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