title: How to get menu reference from an activity
body: <p>I am writing JUnit test scripts for an Android project. What I intent to test is the options menu items (you know, the menu invoked by pressing menu key) from an activity.</p>
  
  <p>However, in our project the menu is generated dynamically from some internet content.
  Most importantly, the Menu object is a private variable in our activity object.</p>
  
  <p>Now my question is, how can I verify the this menu (verify its number of menuitems, text on each items, etc).</p>