ViewChildActivity extends BaseChildActivity { @Override protected void initializeData(Bundle savedInstanceState) throws JSONException { super.initializeData(savedInstanceState); this.editable = false; load(); if (featureToggle.isEnabled(FEATURE.ENQUIRIES)) { PotentialMatchesFormSection section = new PotentialMatchesFormSection(); section.setOrder(formSections.size()); formSections.add(section); } }  @Override boolean onCreateOptionsMenu(Menu menu); @Override boolean onOptionsItemSelected(MenuItem item);  }
@Test(expected = Exception.class) public void shouldThrowErrorIfChildIsNotFound() throws Exception { activity.initializeData(null); }