### Question:
ParseContext { @Override public String toString() { return "ParseContext [index=" + index + ", errorIndex=" + errorIndex + ", originalInput='" + originalInput + "', parsedNumber=" + parsedNumber + "', parsedCurrency=" + parsedCurrency + ']'; } 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 testToString() { 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); assertEquals(context.toString(), "ParseContext [index=1, errorIndex=2, originalInput=' EUR', parsedNumber=25', parsedCurrency=BuildableCurrencyUnit(currencyCode=EUR, numericCode=-1, defaultFractionDigits=2, context=CurrencyContext (\n" + "{provider=test}))]"); }