### Question:
FieldTable implements EncodableData { public long getSize() { long tableEntrySize = 0L; for (Map.Entry<ShortString, FieldValue> fieldEntry : properties.entrySet()) { tableEntrySize = tableEntrySize + fieldEntry.getKey().getSize() + fieldEntry.getValue().getSize(); } size = tableEntrySize; return 4L + tableEntrySize; } FieldTable(Map<ShortString, FieldValue> properties);  FieldTable(); long getSize(); void write(ByteBuf buf); void add(ShortString propertyName, FieldValue value); @Override int hashCode(); @Override boolean equals(Object obj); static FieldTable parse(ByteBuf buf); FieldValue getValue(ShortString propertyName); static final FieldTable EMPTY_TABLE; }### Answer:
@Test public void testGetSize() throws Exception { Assert.assertEquals(testFieldTable.getSize(), 4 + testKey.getSize() + testValue.getSize(), "Empty table should have size 4"); }