title: How to access message of AlertDialog built by AlertDialog.Builder?
body: <p>I have this AlertDialog and AlertDialog.Builder:</p>
  
  <pre><code>    String message = "A message";
      AlertDialog.Builder dBuilder = new AlertDialog.Builder(this);
      dBuilder.setMessage(message);
      ....
      AlertDialog myDialog = dBuilder.create();
  </code></pre>
  
  <p>Now I am writing a unit test and need to test the message of the dialog. How can I access that message?</p>