DefaultMapBackedModel implements MapBackedModel { @Override public ListBackedModel<?> createChildList(String name) { ListBackedModel child = new DefaultListBackedModel(); values.put(name, child.getResult()); return child; }  @Override void addValue(String name, Object result); @Override MapBackedModel<?> createChildMap(String name); @Override ListBackedModel<?> createChildList(String name); @Override Map<String, Object> getResult(); @Override boolean isEmpty();  }
@Test public void createChildList() { DefaultMapBackedModel model = new DefaultMapBackedModel(); model.createChildList("childList"); assertEquals(1, model.getResult().size()); assertTrue(model.getResult().get("childList") instanceof LinkedList); }