@Test
public void testGetExternalValueProvider() {

  final JBBPExternalValueProvider provider = (fieldName, numericFieldMap, compiledBlock) -> 0;
  final JBBPNamedNumericFieldMap map = new JBBPNamedNumericFieldMap(provider);
  assertSame(provider, map.getExternalValueProvider());
  final JBBPNamedNumericFieldMap map2 = new JBBPNamedNumericFieldMap(null);
  try {
    map2.getExternalFieldValue("test", JBBPCompiledBlock.prepare().setSource("").setCompiledData(new byte[] {0}).build(), null);
    fail("Must throw JBBPEvalException");
  } catch (JBBPEvalException ex) {
  }
}