@Test
public void testBasic() throws IOException
{
BasicTestDataLeaf leaf = new BasicTestDataLeaf();
ObjectMapHierarchicalModelImpl model = new ObjectMapHierarchicalModelImpl();
RenderingEvent<BasicTestDataLeaf> event = new RenderingEvent<BasicTestDataLeaf>( RenderingEventType.POJO_CHILD, model, leaf,
BasicTestDataLeaf.class, requestContext, new CoreSelector(
new DefaultEntityConfigurationRegistry() ) );
new NavigationLinksListener().eventOccurred( event );
Map<String, Object> objectTree = model.getUnderlyingModel();
Map<String, Object> navLinks = getMap( objectTree, "navigationLinks" );
Assert.assertNotNull( navLinks );
Map<String, Object> otherMap = getMap( navLinks, "other" );