### Question:
Instructions { void cleanup () { for (InstructionSet instructionSet : mInstructionSets.values ()) { instructionSet.cleanup (); } } Instructions(ProcedureRunner runner, TestRunResultPublisher publisher);   }### Answer:
@Test public void testCleanup () { Instructions instructions = new Instructions (null, null); InstructionSetImpl instructionSet = new InstructionSetImpl ("instruction set name"); instructions.addInstructionSet (instructionSet); assertFalse (instructionSet.isCleanupCalled ()); instructions.cleanup (); assertTrue (instructionSet.isCleanupCalled ()); }