defaultsCtrl.setReturnValue("mysipdomain.com"); defaults.getOutboundProxy();
defaultsCtrl.setDefaultReturnValue("mysipdomain.com"); defaults.getProxyServerAddr();
    public void testPrepareSettings() throws Exception {        assertSame(m_model, m_gateway.getModel());        MockControl defaultsCtrl = MockClassControl.createControl(PhoneDefaults.class);        PhoneDefaults defaults = (PhoneDefaults) defaultsCtrl.getMock();        defaults.getDomainName();        defaultsCtrl.setReturnValue("mysipdomain.com");        defaults.getOutboundProxy();        defaultsCtrl.setReturnValue("10.1.2.3");        defaults.getOutboundProxyPort();        defaultsCtrl.setReturnValue("4321");        defaultsCtrl.replay();        m_gateway.setDefaults(defaults);        m_gateway.prepareSettings();        assertEquals("10.1.2.3:4321", m_gateway.getSettingValue("SIPgw/ProxyIp"));        assertEquals("mysipdomain.com", m_gateway.getSettingValue("SIPgw/ProxyName"));        defaultsCtrl.verify();    }