mSolo.clickOnText(mSolo.getString(R.string.menu_back));
assertTrue("Ok Button not found", mSolo.searchButton(mSolo.getString(R.string.save_button_text)));
assertTrue("No Button not found", mSolo.searchButton(mSolo.getString(R.string.discard_button_text)));
long lastModifiedBefore = imageFile.lastModified();
long fileSizeBefore = imageFile.length();
<BUG>mSolo.clickOnButton(mSolo.getString(R.string.discard_button_text));
mSolo.waitForDialogToClose(TIMEOUT);</BUG>
assertEquals(imageFile.lastModified(), lastModifiedBefore);
assertEquals(imageFile.length(), fileSizeBefore);
}

mSolo.clickOnText(mSolo.getString(R.string.menu_back));
assertTrue("Ok Button not found", mSolo.searchButton(mSolo.getString(R.string.save_button_text)));
assertTrue("No Button not found", mSolo.searchButton(mSolo.getString(R.string.discard_button_text)));
long lastModifiedBefore = imageFile.lastModified();
long fileSizeBefore = imageFile.length();
assertEquals(imageFile.lastModified(), lastModifiedBefore);
assertEquals(imageFile.length(), fileSizeBefore);
}
