package org.robolectric.util;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.R;
import org.robolectric.TestRunners;

import static org.hamcrest.core.IsNull.notNullValue;
import static org.junit.Assert.assertThat;
import static org.robolectric.util.FragmentTestUtil.startFragment;

@RunWith(TestRunners.WithDefaults.class)
public class FragmentTestUtilTest {
  private LoginFragment fragment;

  @Before
  public void setUp() {
    fragment = new LoginFragment();
    startFragment(fragment);

    assertThat(fragment.getActivity(), notNullValue());
    assertThat(fragment.getView(), notNullValue());
  }

  @Test
  public void tacos_should_be_found() {
    assertThat(fragment.getView().findViewById(R.id.tacos), notNullValue());
  }
}

class LoginFragment extends Fragment {
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    return inflater.inflate(R.layout.fragment_contents, container, false);
  }
}

@@ -847,20 +847,17 @@
 acos
-_s
+S
 hould
-_be_f
+BeF
 ound
@@ -942,19 +942,26 @@
 ));%0A  %7D%0A
-%7D%0A%0A
+%0A  static 
 class Lo
@@ -993,16 +993,18 @@
 ent %7B%0A  
+ 
+ 
 @Overrid
@@ -1005,16 +1005,18 @@
 verride%0A
+  
   public
@@ -1113,16 +1113,18 @@
 ) %7B%0A    
+  
 return i
@@ -1190,10 +1190,17 @@
 e);%0A
+    %7D%0A
   %7D%0A%7D%0A
+%0A

Clean up test