DashProfParser parser = new DashProfParser(new FileReader("data/simple.prof"));
DashProfParser parser = new DashProfParser(new FileReader(System.getProperty("basedir") + "/data/simple.prof"));
	public static void testSimpleProfileSolver() throws Exception	{		DashProfParser parser = new DashProfParser(new FileReader("data/simple.prof"));		parser.execute();		Collection callIDs = parser.getCallIDs();		Collection proxyCallIDs = parser.getProxyCallIDs();				CallFractionSolverData data = new CallFractionSolverData(callIDs, proxyCallIDs);		assertion(data.getModel().toString().startsWith("[741]option solver kestrel;"),				  "Expected " + data.getModel() + " to start with [741]option solver kestrel;");		assertion(data.getCommands().toString().startsWith("[171]# Assign initial values for I"),				  "Expected " + data.getCommands() + " to start with [171]# Assign initial values for I");		String expectedData = "[222]data;\n" +			"set rcc = 6 4 5 7;\n" + 			"set I = p10 p11 p12 p13;";		assertion(data.getData().toString().startsWith(expectedData), "Expected " + data.getData() + " to start with " + expectedData);		System.setProperty("solver.user.name", "JAVA_USER");		CallFractionSolver solver = new CallFractionSolver(data);		SocketConnection.Factory factory = new SocketConnection.Factory("neos.mcs.anl.gov", 3333);		factory.setDebug(true, "simple");		double[] fractions = solver.execute(factory);		assertion(fractions.length == 14, "Expected " + fractions.length + " = 14");		assertion(equal(fractions[0], 1), "Expected " + fractions[0] + " = 1");		assertion(equal(fractions[1], 1), "Expected " + fractions[1] + " = 1");		assertion(equal(fractions[10], 0.333333), "Expected " + fractions[10] + " = 1/3");		assertion(equal(fractions[11], 0.666667), "Expected " + fractions[10] + " = 2/3");		/*		for ( int i = 0; i < fractions.length; ++i )		{			System.out.println(i + " = " + fractions[i]);		}		*/	}