@Test
public void testNumericValue() {

  final int value = 1234;
  final JBBPNamedNumericFieldMap map = new JBBPNamedNumericFieldMap();
  final JBBPNamedFieldInfo nameInfo = new JBBPNamedFieldInfo("value", "value", value);
  map.putField(new JBBPFieldInt(nameInfo, value));
  final List<JBBPNamedFieldInfo> list = new ArrayList<>();
  list.add(nameInfo);
  final byte[] compiled = new byte[] {0};
  final JBBPCompiledBlock compiledBlock = JBBPCompiledBlock.prepare().setCompiledData(compiled).setSource("none").setNamedFieldData(list).build();
  JBBPOnlyFieldEvaluator expr = new JBBPOnlyFieldEvaluator(null, 0);
  assertEquals(value, expr.eval(null, 0, compiledBlock, map));
}