@Test
public void testMapConversionWhenNestedStructsEnabled() throws DescriptorValidationException {
ThriftToDynamicProto<MapStruct> thriftToProto =
new ThriftToDynamicProto<MapStruct>(MapStruct.class, true, false);
MapStruct mapStruct = genMapStruct();
Message msg = thriftToProto.convert(mapStruct);
Map<Integer, String> expected = mapStruct.entries;
List<?> entries = (List)Protobufs.getFieldByName(msg, "entries");
Set<?> expectedKeys = Sets.newHashSet(expected.keySet());