phoneContextCtrl.expectAndReturn(phoneContext.getPhoneDefaults(), defaults, 2);
phoneContextCtrl.expectAndReturn(phoneContext.getPhoneDefaults(), defaults, 1);
    public void testNoUserGetUriAndDisplayLabel() {        DeviceDefaults defaults = new DeviceDefaults();                MockControl phoneContextCtrl = MockControl.createNiceControl(PhoneContext.class);        PhoneContext phoneContext = (PhoneContext) phoneContextCtrl.getMock();        phoneContextCtrl.expectAndReturn(phoneContext.getPhoneDefaults(), defaults, 2);        phoneContextCtrl.replay();        Phone phone = new AcmePhone();        phone.setPhoneContext(phoneContext);                phone.setModelFilesContext(TestHelper.getModelFilesContext());        Line line = phone.createLine();                line.setModelFilesContext(TestHelper.getModelFilesContext());        phone.addLine(line);                LineInfo settings = new LineInfo();        settings.setDisplayName("Display Name");        settings.setUserId("user_id");        settings.setRegistrationServer("sipfoundry.org");        phone.setLineInfo(line, settings);                String actual = line.getUri();        assertEquals("\"Display Name\"<sip:user_id@sipfoundry.org>", actual);        assertEquals("user_id", line.getDisplayLabel());                        phoneContextCtrl.verify();    }