*/
@Test
public void testLayoutRowList() throws IOException,
PackageIntegrationException,
DroolsParserException {
ReteGraph graph = new ReteGraph();
BaseVertex root = loadRete( graph );
final RowList rows = ReteooLayoutFactory.calculateReteRows( root );
ReteooLayoutFactory.layoutRowList( graph,
rows );
final List nodes = graph.getChildren();
BaseVertex[] yOrder = (BaseVertex[]) nodes.toArray( new BaseVertex[0] );
Arrays.sort( yOrder,
new Comparator() {
public int compare(Object o1,