### Question:
BitDatum extends Datum { @Override public float asFloat4() { return val; } BitDatum(byte val);  BitDatum(byte[] bytes); @Override char asChar(); @Override int asInt4(); @Override long asInt8(); @Override byte asByte(); @Override byte[] asByteArray(); @Override float asFloat4(); @Override double asFloat8(); @Override String asChars(); @Override byte[] asTextBytes(); @Override int size(); @Override int hashCode(); @Override boolean equals(Object obj); @Override Datum equalsTo(Datum datum); @Override int compareTo(Datum datum);  }### Answer:
@Test public final void testAsFloat() { Datum d = DatumFactory.createBit((byte) 5); assertTrue(5.0f == d.asFloat4()); }