File f1 = new File("IOTest.prx"); //$NON-NLS-1$
File f2 = new File("IOTest2.prx"); //$NON-NLS-1$
Task t = pm.getProbeDesignTask(false,true, null, new DefaultNamingScheme(), new GoodFairAcceptor(),new BestQualitySelector(),new DefaultProbeDesigner(new GreedyTagAllocator()),new DefaultTSSPairDesigner(new DefaultTSSConstructor()),new StreamErrorHandler(System.err,true));
t.run();
TagAllocationTable tat1 = pm.getProject().getTagAllocationTable();
new ProjectXMLIOTask(pm,null,new FileWriter(f1)).run();
new ProjectXMLIOTask(pm,null,new FileReader(f1)).run();
new ProjectXMLIOTask(pm,null,new FileWriter(f2)).run();
new ProjectXMLIOTask(pm,null,new FileReader(f2)).run();
assertEquals(f1.length(),f2.length());
TagAllocationTable tat2 = pm.getProject().getTagAllocationTable();
assertTrue(tat1.equals(tat2));
t = pm.getProbeDesignTask(false,true, null, new DefaultNamingScheme(), new GoodFairAcceptor(),new BestQualitySelector(),new DefaultProbeDesigner(new GreedyTagAllocator()),new DefaultTSSPairDesigner(new DefaultTSSConstructor()),null);
t.run();