### Question:
LeafItem extends Item { @Override Item getChild (String name) { throw new ExecutionException ("leaf item has no children"); } LeafItem(String name, Item parent);   }### Answer:
@Test public void testGetChild () { try { new LeafItem (NAME, null).getChild ("anything"); fail ("no exception"); } catch (ExecutionException ee) { } }