TestDiffListener tdl = new TestDiffListener(); Checker checker = CheckerFactory.createChecker(createCheck(tdl)); ClassSelector classSelector = createClassSelector();  try { checker.reportDiffs( getBaseLine(), getCurrent(), new URLClassLoader(new URL[]{}), new URLClassLoader(new URL[]{}), classSelector); } catch(Exception ex) { fail("Exception generated:" + ex.getMessage()); }  tdl.checkExpected(expected);
    protected void verify(ApiDifference[] expected)    {        TestDiffListener tdl = new TestDiffListener();        Checker checker = CheckerFactory.createChecker(createCheck(tdl));        ClassSelector classSelector = createClassSelector();                try        {            checker.reportDiffs(                getBaseLine(), getCurrent(),                 new URLClassLoader(new URL[]{}),                 new URLClassLoader(new URL[]{}),                classSelector);        }        catch(Exception ex)        {            fail("Exception generated:" + ex.getMessage());        }                    tdl.checkExpected(expected);    }