public static void main(String[] args) {
	if (args.length != 1) {
	    System.err.println("usage: java TestOneSimulation <test filename>");
	    System.exit(0);
	}

	boolean voters[] = Utility.setupVoters(args[0]);
	int steps = Opinion.doOneSimulation(voters);

	if (steps != Utility.numSteps) {
	    System.out.printf("Error: expected %d steps, got %d steps\n", 
			      Utility.numSteps, steps);
	} else if (steps != Opinion.MAX_STEPS) {
	    /* Does the output converge to the expected opinion? */
	    boolean c = (Utility.convergedTo == 'A') ? true : false;
	    for (int i = 0; i < voters.length; i++) {
		if (voters[i] != c) {
		    char d0 = (voters[i] ? 'A' : 'B');
		    System.out.printf("Error: expected convergence to %c, %c @ array location %d\n",
				      Utility.convergedTo, d0, i);
		    System.exit(0);
		}
	    }
	    System.out.println("Success!");
	} else {
	    System.out.println("Success!");
	}
    }