### Question:
BooleanConstant extends BooleanFunction implements ConstantFunction { @Override public boolean getBool(Record rec) { return value; } BooleanConstant(int position, boolean value); @Override boolean getBool(Record rec);  }### Answer:
@Test public void testValueOf() { Assert.assertTrue(new BooleanConstant(0, true).getBool(null)); Assert.assertFalse(new BooleanConstant(0, false).getBool(null)); }