SimpleIntent extends BaseIntent<SimpleIntent> { public SimpleIntent requestCode(final int requestCode) { this.requestCode = requestCode; this.forResult = this.requestCode >= 0; return this; }  SimpleIntent activityClass(@NonNull final Class<? extends Activity> activityClass); @Nullable Class<? extends Activity> activityClass(); SimpleIntent action(@NonNull final String action); @NonNull String action(); SimpleIntent flags(@IntRange(from = 0, to = Integer.MAX_VALUE) final int flags); SimpleIntent flag(@IntRange(from = 1, to = Integer.MAX_VALUE) final int flag); @IntRange(from = 0, to = Integer.MAX_VALUE) int flags(); SimpleIntent requestCode(final int requestCode); int requestCode();  }
@Test public void testRequestCode() { final SimpleIntent intent = new SimpleIntent(); intent.requestCode(1234); assertThat(intent.requestCode(), is(1234)); intent.requestCode(-1); assertThat(intent.requestCode(), is(-1)); }