@Test
public void onActivityResultWithInvalidIntentShouldShowErrorToast() {

    Intent intent = new Intent();
    mainActivity.onActivityResult(MAP_ACTIVITY_REQUEST_CODE, Activity.RESULT_OK, intent);
    assertEquals(context.getString(R.string.error_msg_could_not_retrieve_chosen_feature), ShadowToast.getTextOfLatestToast());
}