private void checkDd2SpringErrMsg(String dd, String errmsg) throws Exception {
PrintStream err = System.err;
try {
ByteArrayOutputStream errOut = new ByteArrayOutputStream();
System.setErr(new TeePrintStream(new PrintStream(errOut), err));
checkDd2Spring(dd);
assertTrue(FileCompare.compareStringsWithFilter(
errmsg, errOut.toString(), nevermatch));