Android ActivityInstrumentationTestCase2 and testing activity state

view story

http://stackoverflow.com – I've been struggling with this issue for quite a while, after following android's offical documentation on how to perform unit testing on android projects I got to a point where I want to perform a certain test on an Activity. I have an EditText that I use setText() from the test case to set it's value, then I want to finish() the activity (so OnSaveInstanceState will be called), persist the value and then use getActivity() in order to make it resume it's previous state and restore the value. Example code: @Override public void setUp() throws Exception { super.setUp(); setActivityIn (HowTos)