FieldSelector fieldSelector = new FieldSelector();
fieldSelector.register( "leaf", new FieldSelector() );
CompositeSelector selector = new CompositeSelector( resolver.getBaseSelector(), fieldSelector );
ObjectMapHierarchicalModelImpl model = new ObjectMapHierarchicalModelImpl();
resultTraverser.traverse( input, selector, model, requestContext );
Map<String, Object> objectTree = model.getUnderlyingModel();
Assert.assertEquals( "fooId", objectTree.get( "id" ) );
Map<String, Object> childTree = (Map<String, Object>) objectTree.get( "leaf" );
Assert.assertEquals( 0, childTree.get( "id" ) );
}