sip.sendCheckSync("\"Joe User\"<sip:juser@sipfoundry.org>", "registrar.sipfoundry.org", "", "juser");
sip.sendCheckSync("\"Joe User\"<sip:juser@sipfoundry.org>", "registrar.sipfoundry.org", null, "juser");
    public PhoneTestDriver(Phone _phone, String settingModel) {                defaults = new PhoneDefaults();        defaults.setDomainName("sipfoundry.org");        defaults.setOutboundProxy("proxy.sipfoundry.org");        defaults.setRegistrationServer("registrar.sipfoundry.org");        defaults.setTftpServer("tftp.sipfoundry.org");        phoneContextControl = MockControl.createNiceControl(PhoneContext.class);        phoneContext = (PhoneContext) phoneContextControl.getMock();        String sysdir = TestHelper.getSysDirProperties().getProperty("sysdir.etc");        phoneContextControl.expectAndReturn(phoneContext.getSystemDirectory(), sysdir,                MockControl.ZERO_OR_MORE);        phoneContextControl.expectAndReturn(phoneContext.getPhoneDefaults(), defaults,                MockControl.ZERO_OR_MORE);                        user = new User();        user.setUserName("juser");        user.setFirstName("Joe");        user.setLastName("User");        user.setSipPassword("1234");        this.phone = _phone;        Setting model = TestHelper.loadSettings(settingModel);        _phone.setSettingModel(model);        _phone.setTftpRoot(TestHelper.getTestDirectory());        _phone.setSerialNumber(serialNumber);        _phone.setPhoneContext(phoneContext);                _phone.setVelocityEngine(TestHelper.getVelocityEngine());                    line = _phone.createLine();        line.setPhone(_phone);        line.setUser(user);        _phone.addLine(line);        sipControl = MockControl.createStrictControl(SipService.class);        sip = (SipService) sipControl.getMock();        sip.sendCheckSync("\"Joe User\"<sip:juser@sipfoundry.org>", "registrar.sipfoundry.org", "", "juser");        sipControl.replay();        _phone.setSipService(sip);        phoneContextControl.replay();    }