source: class LoginActivityTest {
  
      private LoginActivity loginActivity;
  
      @Test
      public void shouldFinishActivityWhenBackPressed() {
  
target:         loginActivity.onBackPressed();
          assertThat(loginActivity.isFinishing(), is(true));
      }
  
  }