FileDescriptorSource fileDescriptorSource = FileDescriptorSource.fromResources(
"org/infinispan/protostream/test/message.proto",
"org/infinispan/protostream/lib/base.proto",
"org/infinispan/protostream/lib/base2.proto");
Map<String, FileDescriptor> files = new SquareProtoParser().parse(fileDescriptorSource);
FileDescriptor descriptor = files.get("org/infinispan/protostream/test/message.proto");
assertThat(descriptor.getMessageTypes()).hasSize(3);
assertThat(descriptor.getEnumTypes()).hasSize(1);