public void testDisplayAllChildren() throws JSONException {
   ChildRepository repository =
       RapidFtrApplication.getInstance().getInjector().getInstance(ChildRepository.class);
   repository.createOrUpdate(new Child("id1", "rapidftr", "{\"name\":\"Test1\"}"));
   repository.createOrUpdate(new Child("id2", "rapidftr", "{\"name\":\"Test2\"}"));
   assertTrue(viewAllChildrenPage.isChildPresent("id1", "Test1"));
   assertTrue(viewAllChildrenPage.isChildPresent("id2", "Test2"));
 }
  public void testClickOnChildShouldShowViewPage() throws JSONException {
    ChildRepository repository =
        RapidFtrApplication.getInstance().getInjector().getInstance(ChildRepository.class);
    Child child1 = new Child("id1", "rapidftr", "{\"name\":\"Test1\"}");
    repository.createOrUpdate(child1);
    Child child2 = new Child("id2", "rapidftr", "{\"name\":\"Test2\"}");
    repository.createOrUpdate(child2);

    viewAllChildrenPage.clickChild("id1");
    viewAllChildrenPage.verifyChildDetails(child1);
  }