Dictionary<String, Object> props = new Hashtable<String, Object>();
UpdateCommand command = new UpdateCommand();
BundleContext context = EasyMock.createMock(BundleContext.class);
command.setBundleContext(context);
ConfigRepository configRepo = EasyMock.createMock(ConfigRepository.class);
expect(configRepo.createFactoryConfiguration(EasyMock.eq(FACTORY_PID), EasyMock.eq(props)))
.andReturn(PID + ".35326647");
command.setConfigRepository(configRepo);
expect(context.getBundle(0)).andReturn(null).anyTimes();
MockCommandSession session = createMockSessionForFactoryEdit(FACTORY_PID, true, props);