@Before
  public void before() {
    // Create a directory for messages so it is easier to list files, clean up etc.
    msgDir = new File(MESSAGE_DIR);
    if (msgDir.exists()) {
      System.out.println("WARNING: Message directory exists, deleting");
      Utils.delete(msgDir);
    }

    if (!msgDir.mkdir()) {
      System.out.println("WARNING: Could not create message directory, tests will probably fail");
    }
  }
 @After
 public void after() {
   Utils.delete(msgDir);
 }