assertEquals(1, msg.getRepeatedForeignMessage(0).getC());
msg.clear();
assertEquals(0, msg.getRepeatedForeignMessageCount());
// Test 1 entry
msg.clear()
.addRepeatedForeignMessage(foreignMsg0);
assertEquals(1, msg.getRepeatedForeignMessageCount());
byte [] result = msg.toByteArray();
int msgSerializedSize = msg.getSerializedSize();
//System.out.printf("mss=%d result.length=%d\n", msgSerializedSize, result.length);