@Test public void createFriend() throws Exception { Faction fact = u.getFaction(); Unit u2 = new Unit(w); while (fact != u2.getFaction()) u2 = new Unit(w); Expression<Unit> unit = f.createFriend(null); Statement stmt = f.createPrint(unit, null); runStatementFor(u, stmt, 0.1); System.out.println("The above test should print" + u2); }