* @throws Exception if any.
*/
@Test
@Ignore
public void testLoadLegacyMatrixProject() throws Exception {
Hudson hudson = createMock(Hudson.class);
expect(hudson.getNodes()).andReturn(Lists.<Node>newArrayList()).anyTimes();
expect(hudson.getInitLevel()).andReturn(InitMilestone.STARTED).anyTimes();
expect(hudson.getRootDir()).andReturn(new File("./target/matrix")).anyTimes();
ExtensionList<TransientProjectActionFactory> actionList = ExtensionList.create(hudson,
TransientProjectActionFactory.class);
expect(hudson.getExtensionList(TransientProjectActionFactory.class)).andReturn(actionList).anyTimes();
ExtensionList<SaveableListener> saveableListenerList = ExtensionList.create(hudson, SaveableListener.class);
expect(hudson.getExtensionList(SaveableListener.class)).andReturn(saveableListenerList).anyTimes();
expect(hudson.getAllItems(MatrixConfiguration.class)).andReturn(Lists.<MatrixConfiguration>newArrayList()).anyTimes();
mockStatic(Hudson.class);
expect(Hudson.getInstance()).andReturn(hudson).anyTimes();
replayAll();
MatrixProject project = (MatrixProject) Items.getConfigFile(config).read();
project.setAllowSave(false);