@Test
public void testEmbeddedMap() throws Exception {

    String itemKey = "item";
    final String expr = itemKey + ".inner.name";
    final Map<String, Object> inner = Collections.<String, Object>singletonMap("name", "KEY");
    Map<String, Object> item = Collections.<String, Object>singletonMap("inner", inner);
    final Map<String, Object> model = Collections.<String, Object>singletonMap(itemKey, item);
    final TRenderContext context = new TRenderContext(new ByteArrayOutputStream(), model);
    assertEquals(item.toString(), context.getModelValue("item").toString());
    assertEquals(item.get("inner").toString(), context.getModelValue("item.inner").toString());
    context.getModelValue(expr);
    assertEquals("KEY", context.getModelValue("item.inner.name"));
}