public String toString() {
            return "Test parameters:\n" + "  resourceRealName        = " + resourceRealName + "\n" +
                    "  resourceStatedName      = " + resourceStatedName + "\n" +
                    "  realType                = " + realType + "\n" +
                    "  statedType              = " + statedType + "\n" +
                    "  expectedContentFragment = " + expectedContentFragment + "\n";
        }
Produces a string like the following:

<pre>
Test parameters:
  resourceRealName        = /test-documents/testEXCEL.xls
  resourceStatedName      = null
  realType                = application/vnd.ms-excel
  statedType              = null
  expectedContentFragment = Sample Excel Worksheet
</pre>
tika-parsers/tika-parsers-standard/tika-parsers-standard-package/src/test/java/org/apache/tika/parser/AutoDetectParserTest.java