sip.sendCheckSync("\"Joe User\"<sip:juser@sipfoundry.org>", "outbound.sipfoundry.org", "5555");
sip.sendCheckSync("\"Joe User\"<sip:juser@sipfoundry.org>", "pbx.sipfoundry.org", "5555");
    private PhoneTestDriver(Phone _phone) {        defaults = new DeviceDefaults();        defaults.setDeviceTimeZone(new DeviceTimeZone("Etc/GMT+5")); // no DST for consistent results        defaults.setDomainName("sipfoundry.org");        defaults.setFullyQualifiedDomainName("pbx.sipfoundry.org");        defaults.setTftpServer("tftp.sipfoundry.org");        defaults.setProxyServerAddr("outbound.sipfoundry.org");        defaults.setProxyServerSipPort("5555");        phoneContextControl = EasyMock.createNiceControl();        phoneContext = phoneContextControl.createMock(PhoneContext.class);        String sysdir = TestHelper.getSysDirProperties().getProperty("sysdir.etc");        phoneContext.getSystemDirectory();        phoneContextControl.andReturn(sysdir).anyTimes();        phoneContext.getPhoneDefaults();        phoneContextControl.andReturn(defaults).anyTimes();                        phoneContextControl.replay();        user = new User();        user.setUserName("juser");        user.setFirstName("Joe");        user.setLastName("User");        user.setSipPassword("1234");        this.phone = _phone;                        ModelFilesContextImpl mfContext = new ModelFilesContextImpl();        mfContext.setConfigDirectory(sysdir);        mfContext.setModelBuilder(new XmlModelBuilder(sysdir));        _phone.setModelFilesContext(mfContext);                _phone.setTftpRoot(TestHelper.getTestDirectory());        _phone.setSerialNumber(serialNumber);        _phone.setPhoneContext(phoneContext);                _phone.setVelocityEngine(TestHelper.getVelocityEngine());                _phone.initialize();        line = _phone.createLine();        line.setPhone(_phone);        line.setUser(user);        _phone.addLine(line);        sipControl = EasyMock.createStrictControl();        sip = sipControl.createMock(SipService.class);        sip.sendCheckSync("\"Joe User\"<sip:juser@sipfoundry.org>", "outbound.sipfoundry.org", "5555");        sipControl.replay();        _phone.setSipService(sip);    }