### Question:
DatumFactory { public static Datum createBool(byte val) { return BooleanDatum.THREE_VALUES[(int)val]; }  static Class<? extends Datum> getDatumClass(Type type); static Datum createFromString(DataType dataType, String value); static Datum createFromBytes(DataType dataType, byte[] bytes); static Datum createFromInt4(DataType type, int val); static Datum createFromInt8(DataType type, long val); static NullDatum createNullDatum(); static Datum createBool(byte val); static BooleanDatum createBool(boolean val); static BitDatum createBit(byte val); static CharDatum createChar(char val); static CharDatum createChar(byte val); static CharDatum createChar(byte[] bytes); static CharDatum createChar(String val); static Int2Datum createInt2(short val); static Int2Datum createInt2(String val); static Int4Datum createInt4(int val); static Int4Datum createInt4(String val); static Int8Datum createInt8(long val); static Int8Datum createInt8(String val); static Float4Datum createFloat4(float val); static Float4Datum createFloat4(String val); static Float8Datum createFloat8(double val); static Float8Datum createFloat8(String val); static TextDatum createText(String val); static TextDatum createText(byte[] val); static DateDatum createDate(int instance); static DateDatum createDate(String dateStr); static TimeDatum createTime(long instance); static TimeDatum createTime(String dateStr); static TimestampDatum createTimeStamp(int unixTime); static TimestampDatum createTimeStampFromMillis(long millis); static TimestampDatum createTimeStamp(String timeStamp); static DateDatum createDate(Datum datum); static TimeDatum createTime(Datum datum); static TimestampDatum createTimestamp(Datum datum); static BlobDatum createBlob(byte[] val); static BlobDatum createBlob(byte[] val, int offset, int length); static BlobDatum createBlob(String val); static Inet4Datum createInet4(byte[] val); static Inet4Datum createInet4(byte[] val, int offset, int length); static Inet4Datum createInet4(String val); static Datum cast(Datum operandDatum, DataType target);  }### Answer:
@Test public final void testCreateBoolean() { Datum d = DatumFactory.createBool(true); assertEquals(Type.BOOLEAN, d.type()); }