}
private void assertExtensions(List<ExtendDescriptor> extensions) {
assertThat(extensions).hasSize(1);
ExtendDescriptor resultExtension = extensions.get(0);
assertThat(resultExtension.getExtendedMessage().getName()).isEqualTo("MoreInner");
assertThat(resultExtension.getFileDescriptor()).isNotNull();
FieldDescriptor barField = resultExtension.getFields().get(0);
assertThat(barField.getRule()).isEqualTo(Rule.OPTIONAL);
assertThat(barField.getJavaType()).isEqualTo(JavaType.FLOAT);
assertThat(barField.getNumber()).isEqualTo(101);
assertThat(barField.isPacked()).isTrue();
}