@Test
public void backButtonPress_ShouldCallFinishWithResultOK() {

    preferencesActivity.onBackPressed();
    verify(preferencesActivity).setResult(RegistrationActivity.RESULT_OK);
    verify(preferencesActivity).finish();
}