sample code from robolectric to understand it