public void testOrderOfInvocation() throws InterruptedException { Recorder r = new Recorder(); Greeter g = new Greeter(r); Sender s = new Sender(r); Coordinator c = new Coordinator(s, g); c.start(); c.join(); assertEquals("sayHello();sendFirstMessage();sendSecondMessage(); sayGoodbye();",r.playBack()); }