// repeated group membership = 1 [deprecated = true] {
// required int64 groupId = 2;
// }
// }
@Test public void should_provide_fields_for_native_option() {
NativeFieldOption option = xtext.find("deprecated", NativeFieldOption.class);
IScope scope = scopeProvider.scope_OptionSource_target(option.getSource(), reference);
Group group = xtext.find("membership", Group.class);
ProtoDescriptor descriptor = descriptorProvider.primaryDescriptor();
Collection<MessageField> optionSources = descriptor.availableOptionsFor(group);
assertThat(descriptionsIn(scope), containAll(optionSources));
}