ViewEnquiryActivity extends BaseEnquiryActivity { @Override protected void initializeData(Bundle savedInstanceState) throws JSONException, IOException { super.initializeData(savedInstanceState); this.editable = false; @Cleanup EnquiryRepository enquiryRepository = inject(EnquiryRepository.class); this.enquiry = loadEnquiry(getIntent().getExtras(), enquiryRepository); PotentialMatchesFormSection section = new PotentialMatchesFormSection(); section.setOrder(formSections.size()); formSections.add(section); }  void edit(View view); @Override boolean onCreateOptionsMenu(Menu menu); @Override boolean onOptionsItemSelected(MenuItem item);  }
@Test(expected = Exception.class) public void shouldThrowErrorIfChildIsNotFound() throws Exception{ activity.initializeData(null); }