Inet4Datum extends Datum { @Override public int size() { return size; } Inet4Datum(int encoded);  Inet4Datum(String addr);  Inet4Datum(byte[] addr);  Inet4Datum(byte[] addr, int offset, int length); @Override int asInt4(); @Override long asInt8(); @Override byte[] asByteArray(); @Override String asChars(); @Override int size(); @Override int hashCode(); @Override boolean equals(Object obj); @Override Datum equalsTo(Datum datum); @Override int compareTo(Datum datum);  }
@Test public final void testSize() { Datum d = DatumFactory.createInet4("163.152.23.222"); assertEquals(4, d.size()); }