ne8.printStackTrace(ps1);
ne8.printStackTrace(pw1);
    public void testPrintStackTrace()    {        Nestable ne8 = getNestable("ne8", getThrowable("ne8 exception"));        ByteArrayOutputStream baos1 = new ByteArrayOutputStream();        PrintStream ps1 = new PrintStream(baos1);        PrintWriter pw1 = new PrintWriter(ps1, true);        ne8.printStackTrace(ps1);        String stack1 = baos1.toString();        String startsWith = getThrowableClass().getName() + ": ne8 exception";        assertTrue("stack trace startsWith == " + startsWith,            stack1.startsWith(startsWith));        String indexOf = ne8.getClass().getName() + ": ne8: ne8 exception";        assertTrue("stack trace indexOf " + indexOf + " > -1",            stack1.indexOf(indexOf) > -1);     }