@Test
public void testExpression_Variable() {

  final JBBPNamedFieldInfo info = new JBBPNamedFieldInfo("hello", "hello", 0);
  final byte[] compiled = new byte[] {JBBPCompiler.CODE_INT | JBBPCompiler.FLAG_NAMED};
  final List<JBBPNamedFieldInfo> list = Collections.singletonList(info);
  JBBPExpressionEvaluator expr = new JBBPExpressionEvaluator("hello", list, compiled);
  final JBBPNamedNumericFieldMap map = new JBBPNamedNumericFieldMap();
  map.putField(new JBBPFieldInt(info, 1234));
  assertEquals(1234, expr.eval(null, 0, JBBPCompiledBlock.prepare().setCompiledData(compiled).setNamedFieldData(list).setSource("no source").build(), map));
}