### Question:
IntConstant extends IntFunction implements ConstantFunction { @Override public int getInt(Record rec) { return value; } IntConstant(int position, int value); @Override int getInt(Record rec);  }### Answer:
@Test public void testConstant() { IntConstant constant = new IntConstant(10, 200); Assert.assertTrue(constant.isConstant()); Assert.assertEquals(200, constant.getInt(null)); }