p.put(returnLocation, url);
p.put(returnType, type);
m_control.checkOrder(false);
final UPnPAction action1 = m_control.createMock(UPnPAction.class);
EasyMock.expect(action1.getOutputArgumentNames()).andReturn(new String[]{returnLocation}).anyTimes();
EasyMock.expect(action1.invoke(null)).andReturn(p).anyTimes();
final UPnPAction action2 = m_control.createMock(UPnPAction.class);
EasyMock.expect(action2.getOutputArgumentNames()).andReturn(new String[]{returnType}).anyTimes();
EasyMock.expect(action2.invoke(null)).andReturn(p).anyTimes();
final UPnPService service = m_control.createMock(UPnPService.class);
EasyMock.expect(service.getAction("GetLocation")).andReturn(action1).anyTimes();
EasyMock.expect(service.getAction("GetServerType")).andReturn(action2).anyTimes();