### Question:
CommandArguments { public char peek() { try { return peek(0); } catch (IndexOutOfBoundsException e) { throw ArgumentException.create( "Missing argument: Reached end of arguments while parsing", this); } } protected  CommandArguments(@Nonnull String arguments, char stringDelimiter); @Nonnull static CommandArguments of(@Nonnull String arguments); @Nonnull static CommandArguments of(@Nonnull String arguments, char stringDelimiter); @Nonnull static CommandArguments singleString(@Nonnull String string); @Nonnull static CommandArguments singleString(@Nonnull String string, char stringDelimiter); int indexOfWord(String word); int indexOf(String substring); char charAt(int position); String nextScope(char scopeBegin, char scopeEnd); String nextString(); String nextWord(); String nextSection(char delimiter); void skipLeadingWhitespace(); boolean isNextUnescaped(char c); boolean isNextWhiteSpace(); String remaining(); boolean hasNext(); char next(); char peek(); char peek(int delta); char previous(); void resetPosition(); int position(); void setPosition(int position); int getRawCursor(); char getStringDelimiter(); int length(); @Override String toString(); @Nonnull String getRaw(); static final char DEFAULT_STRING_DELIMITER; }### Answer:
@Test void testPeek() { char peeked = arguments.peek(); char next = arguments.next(); assertEquals(next, peeked, "peek() did not return the next character"); }