### Question:
ShortConstant extends ShortFunction implements ConstantFunction { @Override public short getShort(Record rec) { return value; } ShortConstant(int position, short value); @Override short getShort(Record rec);  }### Answer:
@Test public void testConstant() { ShortConstant constant = new ShortConstant(22, (short) 143); Assert.assertEquals(143, constant.getShort(null)); Assert.assertTrue(constant.isConstant()); }