MaterialTapTargetSequence { @NonNull public MaterialTapTargetSequence showFromIndex(final int index) { this.dismiss(); this.nextPromptIndex = index; this.show(index); return this; }  @NonNull MaterialTapTargetSequence setSequenceCompleteListener(@Nullable SequenceCompleteListener listener); @NonNull MaterialTapTargetSequence addPrompt(@Nullable MaterialTapTargetPrompt prompt); @NonNull MaterialTapTargetSequence addPrompt(@Nullable MaterialTapTargetPrompt prompt,
                                               final long milliseconds); @NonNull MaterialTapTargetSequence addPrompt(@NonNull PromptOptions promptOptions); @NonNull MaterialTapTargetSequence addPrompt(@NonNull PromptOptions promptOptions,
                                               final long milliseconds); @NonNull MaterialTapTargetSequence addPrompt(@NonNull final SequenceItem item); int size(); @NonNull SequenceItem get(final int index); @NonNull MaterialTapTargetSequence show(); @NonNull MaterialTapTargetSequence finish(); @NonNull MaterialTapTargetSequence dismiss(); @NonNull MaterialTapTargetSequence showFromIndex(final int index);  }
@Test(expected = IndexOutOfBoundsException.class) public void testShowSequenceFromIndexOutOfRange() { final MaterialTapTargetSequence sequence = new MaterialTapTargetSequence(); sequence.showFromIndex(-1); }