// TODO: verify the field is as expected
if (!field.equals(readField)) {
throw new RuntimeException("Expected " + field + " but got " + readField);
}
testCase.readMethod(proto);
proto.readStructEnd();
}
public static abstract class StructFieldTestCase {
byte type_;
short id_;