ByteArrayOutputStream bos = new ByteArrayOutputStream(400);
PrintStream stream = new PrintStream(bos, true, "UTF-8");
new NotImplementedException(stream);
String message = new String(bos.toByteArray(), "UTF-8");
assertFalse(message.indexOf("NYITest") == -1);