Look at action bar assert's display options for an example.