### Question:
ParseContext { public void reset() { this.index = 0; this.errorIndex = -1; this.parsedNumber = null; this.parsedCurrency = null; this.errorMessage = null; } ParseContext(CharSequence text); boolean isComplete(); Number getParsedNumber(); boolean consume(String token); boolean consume(char c); int skipWhitespace(); int getErrorIndex(); void setErrorIndex(int index); String getErrorMessage(); void setError(); int getIndex(); CharSequence getInput(); String getOriginalInput(); void reset(); void setParsedNumber(Number number); void setParsedCurrency(CurrencyUnit currency); boolean hasError(); boolean isFullyParsed(); String lookupNextToken(); ParsePosition toParsePosition(); @Override String toString(); CurrencyUnit getParsedCurrency(); void setErrorMessage(String message);  }### Answer:
@Test public void testReset() { ParseContext context = new ParseContext(" EUR"); context.skipWhitespace(); assertEquals(context.getIndex(), 1); context.setError(); context.setErrorIndex(2); context.setErrorMessage("Error"); context.setParsedNumber(25); context.setParsedCurrency(EUR); context.reset(); assertEquals(context.getOriginalInput(), " EUR"); assertEquals(context.getIndex(), 0); assertEquals(context.getErrorIndex(), -1); assertNull(context.getParsedNumber()); assertNull(context.getParsedCurrency()); assertNull(context.getErrorMessage()); }