@Test
public void testRegisterId() {

    int originalSize = mExprModel.size();
    mLayoutBinder.addVariable("test", "java.lang.String", null);
    assertEquals(originalSize + 1, mExprModel.size());
    final Map.Entry<String, Expr> entry = findIdentifier("test");
    final Expr value = entry.getValue();
    assertEquals(value.getClass(), IdentifierExpr.class);
    final IdentifierExpr id = (IdentifierExpr) value;
    assertEquals("test", id.getName());
    assertEquals(new JavaClass(String.class), id.getResolvedType());
    assertTrue(id.isDynamic());
}