@Test
public void testGetModelValue() throws Exception {

    final TestObj item = new TestObj();
    final Map<String, Object> model = Collections.<String, Object>singletonMap("item", item);
    final TRenderContext context = new TRenderContext(new ByteArrayOutputStream(), model);
    assertEquals("KEY", context.getModelValue("item.inner.name"));
    assertEquals("REL", context.getModelValue("item.inner.rel"));
    assertEquals(item.toString(), context.getModelValue("item").toString());
    assertEquals(item.getInner().toString(), context.getModelValue("item.inner").toString());
}