System.err.println(casXml);
    public void testGenerate() throws Exception {        CallerAliases cas = new CallerAliases();        cas.setSipDomain("example.org");        CoreContext coreContext = EasyMock.createMock(CoreContext.class);        coreContext.loadUsers();        EasyMock.expectLastCall().andReturn(m_users);        GatewayContext gatewayContext = EasyMock.createMock(GatewayContext.class);        gatewayContext.getGateways();        EasyMock.expectLastCall().andReturn(m_gateways);        cas.setCoreContext(coreContext);        cas.setGatewayContext(gatewayContext);        EasyMock.replay(coreContext, gatewayContext);        Document document = cas.generate();        String casXml = XmlUnitHelper.asString(document);                InputStream referenceXmlStream = AliasesTest.class                .getResourceAsStream("caller-alias.test.xml");        assertXMLEqual(new InputStreamReader(referenceXmlStream), new StringReader(casXml));        EasyMock.verify(coreContext, gatewayContext);    }