// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.logic.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.logic.models.SwaggerCustomDynamicList;
import com.azure.resourcemanager.logic.models.SwaggerCustomDynamicProperties;
import com.azure.resourcemanager.logic.models.SwaggerCustomDynamicSchema;
import com.azure.resourcemanager.logic.models.SwaggerCustomDynamicTree;
import com.azure.resourcemanager.logic.models.SwaggerCustomDynamicTreeCommand;
import com.azure.resourcemanager.logic.models.SwaggerCustomDynamicTreeSettings;
import com.azure.resourcemanager.logic.models.SwaggerExternalDocumentation;
import com.azure.resourcemanager.logic.models.SwaggerSchema;
import com.azure.resourcemanager.logic.models.SwaggerSchemaType;
import com.azure.resourcemanager.logic.models.SwaggerXml;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import org.junit.jupiter.api.Assertions;

public final class SwaggerSchemaTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        SwaggerSchema model =
            BinaryData
                .fromString(
                    "{\"ref\":\"htkln\",\"type\":\"Integer\",\"title\":\"vvkyfedevjboslcq\",\"items\":{\"ref\":\"okkhminq\",\"type\":\"Integer\",\"title\":\"zng\",\"items\":{\"ref\":\"xxewu\",\"type\":\"Null\",\"title\":\"udbchaqdtv\",\"properties\":{},\"additionalProperties\":\"datact\",\"required\":[\"dtddmflh\",\"ytxzvtznapxbanno\",\"voxczytpr\",\"nwvroevytlyokrr\"],\"maxProperties\":1027800493,\"minProperties\":491107905,\"allOf\":[],\"discriminator\":\"asbcrymodizrx\",\"readOnly\":true,\"example\":\"datanazpmk\",\"notificationUrlExtension\":false},\"properties\":{\"pckc\":{\"ref\":\"pj\",\"type\":\"Integer\",\"title\":\"liohrd\",\"properties\":{},\"additionalProperties\":\"datagxqbawpcb\",\"required\":[],\"maxProperties\":646542935,\"minProperties\":1480013268,\"allOf\":[],\"discriminator\":\"apqofyuicdhz\",\"readOnly\":false,\"example\":\"datagbdvibidmhmwff\",\"notificationUrlExtension\":true},\"um\":{\"ref\":\"rv\",\"type\":\"Integer\",\"title\":\"xoy\",\"properties\":{},\"additionalProperties\":\"datahaim\",\"required\":[],\"maxProperties\":1820999589,\"minProperties\":2080953864,\"allOf\":[],\"discriminator\":\"shbraga\",\"readOnly\":true,\"example\":\"datasvbpavbopfppdbwn\",\"notificationUrlExtension\":true},\"abeolhbhlvbm\":{\"ref\":\"jcaacfdmmcpugm\",\"type\":\"File\",\"title\":\"pvufhbze\",\"properties\":{},\"additionalProperties\":\"dataoqhnlb\",\"required\":[],\"maxProperties\":1142631362,\"minProperties\":1888747543,\"allOf\":[],\"discriminator\":\"clgsc\",\"readOnly\":false,\"example\":\"datarsrrmoucsofldp\",\"notificationUrlExtension\":false},\"ryvwgcwwpbmzg\":{\"ref\":\"qi\",\"type\":\"File\",\"title\":\"kcudfbsfarfsiowl\",\"properties\":{},\"additionalProperties\":\"dataqpvwgfst\",\"required\":[],\"maxProperties\":889840232,\"minProperties\":1864942425,\"allOf\":[],\"discriminator\":\"d\",\"readOnly\":false,\"example\":\"datacluqvo\",\"notificationUrlExtension\":true}},\"additionalProperties\":\"datasydsxwefohe\",\"required\":[\"opwndyqleallk\",\"mtkhlowkxxpvbr\",\"fjmzsyzfho\",\"lhikcyychunsj\"],\"maxProperties\":1508467198,\"minProperties\":270100126,\"allOf\":[{\"ref\":\"hv\",\"type\":\"File\",\"title\":\"phvtrrmhwrb\",\"properties\":{},\"additionalProperties\":\"dataf\",\"required\":[],\"maxProperties\":768394694,\"minProperties\":591587350,\"allOf\":[],\"discriminator\":\"r\",\"readOnly\":false,\"example\":\"datawhhmemhooc\",\"notificationUrlExtension\":true}],\"discriminator\":\"mczjkm\",\"readOnly\":true,\"xml\":{\"name\":\"jxsglhsr\",\"namespace\":\"yejylmbkzudnigrf\",\"prefix\":\"otjewlpxuzzjgnre\",\"attribute\":true,\"wrapped\":true,\"extensions\":{\"diw\":\"dataoihiqak\",\"hcspo\":\"databrkwpzdqt\",\"sipi\":\"dataaqa\"}},\"externalDocs\":{\"description\":\"bebjfu\",\"uri\":\"moichdlpnfpubntn\",\"extensions\":{\"cat\":\"datazviqsowsaae\",\"cwmjvlg\":\"datacjuhplrvkm\",\"y\":\"dataggcvk\",\"psfxsf\":\"dataizrzb\"}},\"example\":\"datatl\",\"notificationUrlExtension\":true,\"dynamicSchemaOld\":{\"operationId\":\"gbwidqlvh\",\"valuePath\":\"oveofizrvjfnmj\",\"parameters\":{\"llfojuidjp\":\"datawyzgiblkuj\",\"ovvtzejetjkln\":\"datauyjucejikzo\"}},\"dynamicSchemaNew\":{\"operationId\":\"yjuzkdb\",\"valuePath\":\"o\",\"parameters\":{}},\"dynamicListNew\":{\"operationId\":\"hqjwtrhtgvg\",\"builtInOperation\":\"c\",\"itemsPath\":\"kolawjmjsmwrokc\",\"itemValuePath\":\"fzzzwyjafitlhg\",\"itemTitlePath\":\"nuchlgmltxdwhmo\",\"parameters\":{}},\"dynamicTree\":{}},\"properties\":{\"gddeimaw\":{\"ref\":\"nj\",\"type\":\"Integer\",\"title\":\"folpymwamxqzra\",\"items\":{\"ref\":\"dphtv\",\"type\":\"Number\",\"title\":\"jvlej\",\"properties\":{},\"additionalProperties\":\"datarlzk\",\"required\":[],\"maxProperties\":667275674,\"minProperties\":1896636277,\"allOf\":[],\"discriminator\":\"pdwvnphcn\",\"readOnly\":false,\"example\":\"datamqrhvthl\",\"notificationUrlExtension\":true},\"properties\":{},\"additionalProperties\":\"datazhzdtxetlgydlhqv\",\"required\":[\"pxy\",\"afiqgeaarbgjekg\",\"klbyulidwcw\"],\"maxProperties\":1795651624,\"minProperties\":398992576,\"allOf\":[],\"discriminator\":\"fhjirwgdnqzbrfk\",\"readOnly\":true,\"xml\":{\"name\":\"mtksjcitdigsx\",\"namespace\":\"gljplkeuachtomfl\",\"prefix\":\"tswfpfmdgycxnms\",\"attribute\":false,\"wrapped\":true,\"extensions\":{}},\"externalDocs\":{\"description\":\"lurlpshhkvp\",\"uri\":\"wqslsrhmpqvw\",\"extensions\":{}},\"example\":\"dataondcbrw\",\"notificationUrlExtension\":true,\"dynamicSchemaOld\":{\"operationId\":\"ej\",\"valuePath\":\"ovyrrleaesinu\",\"parameters\":{}},\"dynamicSchemaNew\":{\"operationId\":\"qobbpihehcec\",\"valuePath\":\"mrqbrjbbmpxdlv\",\"parameters\":{}},\"dynamicListNew\":{\"operationId\":\"e\",\"builtInOperation\":\"rseqwjksghudgz\",\"itemsPath\":\"ogjggsvoujkxibda\",\"itemValuePath\":\"rkmdyom\",\"itemTitlePath\":\"fbvfbhdy\",\"parameters\":{}},\"dynamicTree\":{}},\"b\":{\"ref\":\"vgkk\",\"type\":\"String\",\"title\":\"kjcjcaztbwsnsqow\",\"items\":{\"ref\":\"omlik\",\"type\":\"File\",\"title\":\"czcswka\",\"properties\":{},\"additionalProperties\":\"datayfdvlvhbwrnfxtgd\",\"required\":[],\"maxProperties\":529094053,\"minProperties\":1316745863,\"allOf\":[],\"discriminator\":\"mnaoy\",\"readOnly\":true,\"example\":\"dataqswankltytmhdr\",\"notificationUrlExtension\":false},\"properties\":{},\"additionalProperties\":\"datagjc\",\"required\":[\"uxhemlwywaeeczg\",\"bukklels\"],\"maxProperties\":812614891,\"minProperties\":1378797079,\"allOf\":[],\"discriminator\":\"zujksrlsmdes\",\"readOnly\":true,\"xml\":{\"name\":\"mjc\",\"namespace\":\"ewbidyvteowxv\",\"prefix\":\"iudeu\",\"attribute\":false,\"wrapped\":false,\"extensions\":{}},\"externalDocs\":{\"description\":\"axwk\",\"uri\":\"ykhv\",\"extensions\":{}},\"example\":\"dataepmrut\",\"notificationUrlExtension\":true,\"dynamicSchemaOld\":{\"operationId\":\"obns\",\"valuePath\":\"jdjltymkmvgui\",\"parameters\":{}},\"dynamicSchemaNew\":{\"operationId\":\"rtspphkixkykxds\",\"valuePath\":\"pemmucfxhik\",\"parameters\":{}},\"dynamicListNew\":{\"operationId\":\"mymyincqlhri\",\"builtInOperation\":\"sl\",\"itemsPath\":\"iiovgqcgxu\",\"itemValuePath\":\"qkctotiowlxte\",\"itemTitlePath\":\"ptjgwdt\",\"parameters\":{}},\"dynamicTree\":{}},\"ghpxycphdr\":{\"ref\":\"phqlkccuz\",\"type\":\"Number\",\"title\":\"wahoiul\",\"items\":{\"ref\":\"iip\",\"type\":\"Null\",\"title\":\"awuwzdufypivls\",\"properties\":{},\"additionalProperties\":\"datamcub\",\"required\":[],\"maxProperties\":979719381,\"minProperties\":619083561,\"allOf\":[],\"discriminator\":\"ubvphavpmhbrbqgv\",\"readOnly\":false,\"example\":\"datattefjoknssq\",\"notificationUrlExtension\":true},\"properties\":{},\"additionalProperties\":\"datadb\",\"required\":[\"rjgeih\",\"qlggwfi\",\"zcxmjpbyep\",\"mgtvlj\"],\"maxProperties\":1171245463,\"minProperties\":901010629,\"allOf\":[],\"discriminator\":\"pgxh\",\"readOnly\":true,\"xml\":{\"name\":\"qwcabvnui\",\"namespace\":\"ey\",\"prefix\":\"wlpaugmrmfjlrxwt\",\"attribute\":false,\"wrapped\":true,\"extensions\":{}},\"externalDocs\":{\"description\":\"cisiz\",\"uri\":\"a\",\"extensions\":{}},\"example\":\"dataxjw\",\"notificationUrlExtension\":true,\"dynamicSchemaOld\":{\"operationId\":\"wcgyeewxeiqb\",\"valuePath\":\"mgomg\",\"parameters\":{}},\"dynamicSchemaNew\":{\"operationId\":\"jdlrgmsplzgaufc\",\"valuePath\":\"hvn\",\"parameters\":{}},\"dynamicListNew\":{\"operationId\":\"xkym\",\"builtInOperation\":\"anxrj\",\"itemsPath\":\"xtwbta\",\"itemValuePath\":\"pnyghs\",\"itemTitlePath\":\"cyl\",\"parameters\":{}},\"dynamicTree\":{}},\"eakxcptsoqfyi\":{\"ref\":\"jkhvyomacluzvxnq\",\"type\":\"Integer\",\"title\":\"qpd\",\"items\":{\"ref\":\"kois\",\"type\":\"Array\",\"title\":\"f\",\"properties\":{},\"additionalProperties\":\"datafmcsypobkd\",\"required\":[],\"maxProperties\":1367388370,\"minProperties\":36520302,\"allOf\":[],\"discriminator\":\"ollg\",\"readOnly\":true,\"example\":\"datadmxzjijpv\",\"notificationUrlExtension\":false},\"properties\":{},\"additionalProperties\":\"dataldefxrdcoxn\",\"required\":[\"ja\",\"urnnqbnqbpiz\"],\"maxProperties\":1320210433,\"minProperties\":2017016107,\"allOf\":[],\"discriminator\":\"gypxrxvbfihwuhvc\",\"readOnly\":false,\"xml\":{\"name\":\"bxrblmliowxihspn\",\"namespace\":\"qagnepzwakl\",\"prefix\":\"sbq\",\"attribute\":true,\"wrapped\":true,\"extensions\":{}},\"externalDocs\":{\"description\":\"ao\",\"uri\":\"isglrrc\",\"extensions\":{}},\"example\":\"datak\",\"notificationUrlExtension\":false,\"dynamicSchemaOld\":{\"operationId\":\"jadhqoawj\",\"valuePath\":\"yueayfbpcmsp\",\"parameters\":{}},\"dynamicSchemaNew\":{\"operationId\":\"rueqthwm\",\"valuePath\":\"mbscbbx\",\"parameters\":{}},\"dynamicListNew\":{\"operationId\":\"xiidloped\",\"builtInOperation\":\"dpyqyybxubmd\",\"itemsPath\":\"fcbqwremjela\",\"itemValuePath\":\"cigeleohdbvqvw\",\"itemTitlePath\":\"jopwbeonrlkwz\",\"parameters\":{}},\"dynamicTree\":{}}},\"additionalProperties\":\"datae\",\"required\":[\"krtt\",\"razisg\",\"kiuemv\"],\"maxProperties\":920951306,\"minProperties\":374978573,\"allOf\":[{\"ref\":\"nrxxbsojklin\",\"type\":\"Array\",\"title\":\"tysprqsgnzxojpsl\",\"items\":{\"ref\":\"g\",\"type\":\"Boolean\",\"title\":\"fiqwoy\",\"properties\":{},\"additionalProperties\":\"datapcohhoucqpqojx\",\"required\":[],\"maxProperties\":2079376859,\"minProperties\":1211058395,\"allOf\":[],\"discriminator\":\"dzbenri\",\"readOnly\":false,\"example\":\"datazqddtjwfljhzn\",\"notificationUrlExtension\":true},\"properties\":{},\"additionalProperties\":\"datajj\",\"required\":[\"tjzmi\",\"vgbgatzuuvbxng\",\"ebwgga\"],\"maxProperties\":1978368742,\"minProperties\":1156590862,\"allOf\":[],\"discriminator\":\"ajqfutlx\",\"readOnly\":true,\"xml\":{\"name\":\"sunwqrjzfrgqhaoh\",\"namespace\":\"buocnjr\",\"prefix\":\"mbpyryxamebly\",\"attribute\":false,\"wrapped\":false,\"extensions\":{}},\"externalDocs\":{\"description\":\"ocxnehvsmtodl\",\"uri\":\"yapucygvoa\",\"extensions\":{}},\"example\":\"datanssxlgh\",\"notificationUrlExtension\":true,\"dynamicSchemaOld\":{\"operationId\":\"lgvvpaseksgbu\",\"valuePath\":\"ntuygdhgaqipir\",\"parameters\":{}},\"dynamicSchemaNew\":{\"operationId\":\"qofu\",\"valuePath\":\"pmjnlexwhcb\",\"parameters\":{}},\"dynamicListNew\":{\"operationId\":\"k\",\"builtInOperation\":\"hu\",\"itemsPath\":\"erctatoyin\",\"itemValuePath\":\"pbrlcyrduczkgofx\",\"itemTitlePath\":\"srucvcrrpcjtt\",\"parameters\":{}},\"dynamicTree\":{}}],\"discriminator\":\"qnrmvvfko\",\"readOnly\":true,\"xml\":{\"name\":\"ktuidvrm\",\"namespace\":\"lpdwwexymzvlazi\",\"prefix\":\"hpwvqsgnyyuu\",\"attribute\":false,\"wrapped\":false,\"extensions\":{\"gsksrfhf\":\"datapmeyyvpkpatlbijp\",\"bnxwc\":\"dataolmk\"}},\"externalDocs\":{\"description\":\"mp\",\"uri\":\"qa\",\"extensions\":{\"uiaclkiexhajlfn\":\"datagbrt\",\"b\":\"datahiqfyuttdiy\"}},\"example\":\"datan\",\"notificationUrlExtension\":true,\"dynamicSchemaOld\":{\"operationId\":\"xkyctwwgzwx\",\"valuePath\":\"mecvogygzyvneeza\",\"parameters\":{\"jjjavfqnvhnq\":\"datahtmoqqtlffhzbkr\"}},\"dynamicSchemaNew\":{\"operationId\":\"dogiyetesyp\",\"valuePath\":\"dbztjhqtfbov\",\"parameters\":{\"n\":{\"operationId\":\"bwetnjuhpsp\",\"valuePath\":\"zyaupiac\",\"parameters\":{}}}},\"dynamicListNew\":{\"operationId\":\"wqro\",\"builtInOperation\":\"tuovmaonurj\",\"itemsPath\":\"mghihp\",\"itemValuePath\":\"cmslclblyjxltbs\",\"itemTitlePath\":\"scvsfxigctm\",\"parameters\":{\"gwldo\":{\"operationId\":\"pbezqccydrtceu\",\"valuePath\":\"qkkyihztgeqmg\",\"parameters\":{}}}},\"dynamicTree\":{\"settings\":{\"CanSelectParentNodes\":true,\"CanSelectLeafNodes\":true},\"open\":{\"operationId\":\"fehuwaoaguhi\",\"itemsPath\":\"llizs\",\"itemValuePath\":\"csjvhrwef\",\"itemTitlePath\":\"wqejpmvsse\",\"itemFullTitlePath\":\"epwamcxtcz\",\"itemIsParent\":\"peuknijd\",\"selectableFilter\":\"yespydjfbocyv\",\"parameters\":{}},\"browse\":{\"operationId\":\"tywikd\",\"itemsPath\":\"lakuflgbhgauacd\",\"itemValuePath\":\"mxu\",\"itemTitlePath\":\"sryjqgdkfno\",\"itemFullTitlePath\":\"eoqbvjhvefgwbmqj\",\"itemIsParent\":\"ntasfaymxbu\",\"selectableFilter\":\"zealbmqkyo\",\"parameters\":{}}}}")
                .toObject(SwaggerSchema.class);
        Assertions.assertEquals("htkln", model.ref());
        Assertions.assertEquals(SwaggerSchemaType.INTEGER, model.type());
        Assertions.assertEquals("vvkyfedevjboslcq", model.title());
        Assertions.assertEquals("okkhminq", model.items().ref());
        Assertions.assertEquals(SwaggerSchemaType.INTEGER, model.items().type());
        Assertions.assertEquals("zng", model.items().title());
        Assertions.assertEquals("xxewu", model.items().items().ref());
        Assertions.assertEquals(SwaggerSchemaType.NULL, model.items().items().type());
        Assertions.assertEquals("udbchaqdtv", model.items().items().title());
        Assertions.assertEquals("dtddmflh", model.items().items().required().get(0));
        Assertions.assertEquals(1027800493, model.items().items().maxProperties());
        Assertions.assertEquals(491107905, model.items().items().minProperties());
        Assertions.assertEquals("asbcrymodizrx", model.items().items().discriminator());
        Assertions.assertEquals(true, model.items().items().readOnly());
        Assertions.assertEquals(false, model.items().items().notificationUrlExtension());
        Assertions.assertEquals("pj", model.items().properties().get("pckc").ref());
        Assertions.assertEquals(SwaggerSchemaType.INTEGER, model.items().properties().get("pckc").type());
        Assertions.assertEquals("liohrd", model.items().properties().get("pckc").title());
        Assertions.assertEquals(646542935, model.items().properties().get("pckc").maxProperties());
        Assertions.assertEquals(1480013268, model.items().properties().get("pckc").minProperties());
        Assertions.assertEquals("apqofyuicdhz", model.items().properties().get("pckc").discriminator());
        Assertions.assertEquals(false, model.items().properties().get("pckc").readOnly());
        Assertions.assertEquals(true, model.items().properties().get("pckc").notificationUrlExtension());
        Assertions.assertEquals("opwndyqleallk", model.items().required().get(0));
        Assertions.assertEquals(1508467198, model.items().maxProperties());
        Assertions.assertEquals(270100126, model.items().minProperties());
        Assertions.assertEquals("hv", model.items().allOf().get(0).ref());
        Assertions.assertEquals(SwaggerSchemaType.FILE, model.items().allOf().get(0).type());
        Assertions.assertEquals("phvtrrmhwrb", model.items().allOf().get(0).title());
        Assertions.assertEquals(768394694, model.items().allOf().get(0).maxProperties());
        Assertions.assertEquals(591587350, model.items().allOf().get(0).minProperties());
        Assertions.assertEquals("r", model.items().allOf().get(0).discriminator());
        Assertions.assertEquals(false, model.items().allOf().get(0).readOnly());
        Assertions.assertEquals(true, model.items().allOf().get(0).notificationUrlExtension());
        Assertions.assertEquals("mczjkm", model.items().discriminator());
        Assertions.assertEquals(true, model.items().readOnly());
        Assertions.assertEquals("jxsglhsr", model.items().xml().name());
        Assertions.assertEquals("yejylmbkzudnigrf", model.items().xml().namespace());
        Assertions.assertEquals("otjewlpxuzzjgnre", model.items().xml().prefix());
        Assertions.assertEquals(true, model.items().xml().attribute());
        Assertions.assertEquals(true, model.items().xml().wrapped());
        Assertions.assertEquals("bebjfu", model.items().externalDocs().description());
        Assertions.assertEquals("moichdlpnfpubntn", model.items().externalDocs().uri());
        Assertions.assertEquals(true, model.items().notificationUrlExtension());
        Assertions.assertEquals("gbwidqlvh", model.items().dynamicSchemaOld().operationId());
        Assertions.assertEquals("oveofizrvjfnmj", model.items().dynamicSchemaOld().valuePath());
        Assertions.assertEquals("yjuzkdb", model.items().dynamicSchemaNew().operationId());
        Assertions.assertEquals("o", model.items().dynamicSchemaNew().valuePath());
        Assertions.assertEquals("hqjwtrhtgvg", model.items().dynamicListNew().operationId());
        Assertions.assertEquals("c", model.items().dynamicListNew().builtInOperation());
        Assertions.assertEquals("kolawjmjsmwrokc", model.items().dynamicListNew().itemsPath());
        Assertions.assertEquals("fzzzwyjafitlhg", model.items().dynamicListNew().itemValuePath());
        Assertions.assertEquals("nuchlgmltxdwhmo", model.items().dynamicListNew().itemTitlePath());
        Assertions.assertEquals("nj", model.properties().get("gddeimaw").ref());
        Assertions.assertEquals(SwaggerSchemaType.INTEGER, model.properties().get("gddeimaw").type());
        Assertions.assertEquals("folpymwamxqzra", model.properties().get("gddeimaw").title());
        Assertions.assertEquals("dphtv", model.properties().get("gddeimaw").items().ref());
        Assertions.assertEquals(SwaggerSchemaType.NUMBER, model.properties().get("gddeimaw").items().type());
        Assertions.assertEquals("jvlej", model.properties().get("gddeimaw").items().title());
        Assertions.assertEquals(667275674, model.properties().get("gddeimaw").items().maxProperties());
        Assertions.assertEquals(1896636277, model.properties().get("gddeimaw").items().minProperties());
        Assertions.assertEquals("pdwvnphcn", model.properties().get("gddeimaw").items().discriminator());
        Assertions.assertEquals(false, model.properties().get("gddeimaw").items().readOnly());
        Assertions.assertEquals(true, model.properties().get("gddeimaw").items().notificationUrlExtension());
        Assertions.assertEquals("pxy", model.properties().get("gddeimaw").required().get(0));
        Assertions.assertEquals(1795651624, model.properties().get("gddeimaw").maxProperties());
        Assertions.assertEquals(398992576, model.properties().get("gddeimaw").minProperties());
        Assertions.assertEquals("fhjirwgdnqzbrfk", model.properties().get("gddeimaw").discriminator());
        Assertions.assertEquals(true, model.properties().get("gddeimaw").readOnly());
        Assertions.assertEquals("mtksjcitdigsx", model.properties().get("gddeimaw").xml().name());
        Assertions.assertEquals("gljplkeuachtomfl", model.properties().get("gddeimaw").xml().namespace());
        Assertions.assertEquals("tswfpfmdgycxnms", model.properties().get("gddeimaw").xml().prefix());
        Assertions.assertEquals(false, model.properties().get("gddeimaw").xml().attribute());
        Assertions.assertEquals(true, model.properties().get("gddeimaw").xml().wrapped());
        Assertions.assertEquals("lurlpshhkvp", model.properties().get("gddeimaw").externalDocs().description());
        Assertions.assertEquals("wqslsrhmpqvw", model.properties().get("gddeimaw").externalDocs().uri());
        Assertions.assertEquals(true, model.properties().get("gddeimaw").notificationUrlExtension());
        Assertions.assertEquals("ej", model.properties().get("gddeimaw").dynamicSchemaOld().operationId());
        Assertions.assertEquals("ovyrrleaesinu", model.properties().get("gddeimaw").dynamicSchemaOld().valuePath());
        Assertions.assertEquals("qobbpihehcec", model.properties().get("gddeimaw").dynamicSchemaNew().operationId());
        Assertions.assertEquals("mrqbrjbbmpxdlv", model.properties().get("gddeimaw").dynamicSchemaNew().valuePath());
        Assertions.assertEquals("e", model.properties().get("gddeimaw").dynamicListNew().operationId());
        Assertions
            .assertEquals("rseqwjksghudgz", model.properties().get("gddeimaw").dynamicListNew().builtInOperation());
        Assertions.assertEquals("ogjggsvoujkxibda", model.properties().get("gddeimaw").dynamicListNew().itemsPath());
        Assertions.assertEquals("rkmdyom", model.properties().get("gddeimaw").dynamicListNew().itemValuePath());
        Assertions.assertEquals("fbvfbhdy", model.properties().get("gddeimaw").dynamicListNew().itemTitlePath());
        Assertions.assertEquals("krtt", model.required().get(0));
        Assertions.assertEquals(920951306, model.maxProperties());
        Assertions.assertEquals(374978573, model.minProperties());
        Assertions.assertEquals("nrxxbsojklin", model.allOf().get(0).ref());
        Assertions.assertEquals(SwaggerSchemaType.ARRAY, model.allOf().get(0).type());
        Assertions.assertEquals("tysprqsgnzxojpsl", model.allOf().get(0).title());
        Assertions.assertEquals("g", model.allOf().get(0).items().ref());
        Assertions.assertEquals(SwaggerSchemaType.BOOLEAN, model.allOf().get(0).items().type());
        Assertions.assertEquals("fiqwoy", model.allOf().get(0).items().title());
        Assertions.assertEquals(2079376859, model.allOf().get(0).items().maxProperties());
        Assertions.assertEquals(1211058395, model.allOf().get(0).items().minProperties());
        Assertions.assertEquals("dzbenri", model.allOf().get(0).items().discriminator());
        Assertions.assertEquals(false, model.allOf().get(0).items().readOnly());
        Assertions.assertEquals(true, model.allOf().get(0).items().notificationUrlExtension());
        Assertions.assertEquals("tjzmi", model.allOf().get(0).required().get(0));
        Assertions.assertEquals(1978368742, model.allOf().get(0).maxProperties());
        Assertions.assertEquals(1156590862, model.allOf().get(0).minProperties());
        Assertions.assertEquals("ajqfutlx", model.allOf().get(0).discriminator());
        Assertions.assertEquals(true, model.allOf().get(0).readOnly());
        Assertions.assertEquals("sunwqrjzfrgqhaoh", model.allOf().get(0).xml().name());
        Assertions.assertEquals("buocnjr", model.allOf().get(0).xml().namespace());
        Assertions.assertEquals("mbpyryxamebly", model.allOf().get(0).xml().prefix());
        Assertions.assertEquals(false, model.allOf().get(0).xml().attribute());
        Assertions.assertEquals(false, model.allOf().get(0).xml().wrapped());
        Assertions.assertEquals("ocxnehvsmtodl", model.allOf().get(0).externalDocs().description());
        Assertions.assertEquals("yapucygvoa", model.allOf().get(0).externalDocs().uri());
        Assertions.assertEquals(true, model.allOf().get(0).notificationUrlExtension());
        Assertions.assertEquals("lgvvpaseksgbu", model.allOf().get(0).dynamicSchemaOld().operationId());
        Assertions.assertEquals("ntuygdhgaqipir", model.allOf().get(0).dynamicSchemaOld().valuePath());
        Assertions.assertEquals("qofu", model.allOf().get(0).dynamicSchemaNew().operationId());
        Assertions.assertEquals("pmjnlexwhcb", model.allOf().get(0).dynamicSchemaNew().valuePath());
        Assertions.assertEquals("k", model.allOf().get(0).dynamicListNew().operationId());
        Assertions.assertEquals("hu", model.allOf().get(0).dynamicListNew().builtInOperation());
        Assertions.assertEquals("erctatoyin", model.allOf().get(0).dynamicListNew().itemsPath());
        Assertions.assertEquals("pbrlcyrduczkgofx", model.allOf().get(0).dynamicListNew().itemValuePath());
        Assertions.assertEquals("srucvcrrpcjtt", model.allOf().get(0).dynamicListNew().itemTitlePath());
        Assertions.assertEquals("qnrmvvfko", model.discriminator());
        Assertions.assertEquals(true, model.readOnly());
        Assertions.assertEquals("ktuidvrm", model.xml().name());
        Assertions.assertEquals("lpdwwexymzvlazi", model.xml().namespace());
        Assertions.assertEquals("hpwvqsgnyyuu", model.xml().prefix());
        Assertions.assertEquals(false, model.xml().attribute());
        Assertions.assertEquals(false, model.xml().wrapped());
        Assertions.assertEquals("mp", model.externalDocs().description());
        Assertions.assertEquals("qa", model.externalDocs().uri());
        Assertions.assertEquals(true, model.notificationUrlExtension());
        Assertions.assertEquals("xkyctwwgzwx", model.dynamicSchemaOld().operationId());
        Assertions.assertEquals("mecvogygzyvneeza", model.dynamicSchemaOld().valuePath());
        Assertions.assertEquals("dogiyetesyp", model.dynamicSchemaNew().operationId());
        Assertions.assertEquals("dbztjhqtfbov", model.dynamicSchemaNew().valuePath());
        Assertions.assertEquals("bwetnjuhpsp", model.dynamicSchemaNew().parameters().get("n").operationId());
        Assertions.assertEquals("zyaupiac", model.dynamicSchemaNew().parameters().get("n").valuePath());
        Assertions.assertEquals("wqro", model.dynamicListNew().operationId());
        Assertions.assertEquals("tuovmaonurj", model.dynamicListNew().builtInOperation());
        Assertions.assertEquals("mghihp", model.dynamicListNew().itemsPath());
        Assertions.assertEquals("cmslclblyjxltbs", model.dynamicListNew().itemValuePath());
        Assertions.assertEquals("scvsfxigctm", model.dynamicListNew().itemTitlePath());
        Assertions.assertEquals("pbezqccydrtceu", model.dynamicListNew().parameters().get("gwldo").operationId());
        Assertions.assertEquals("qkkyihztgeqmg", model.dynamicListNew().parameters().get("gwldo").valuePath());
        Assertions.assertEquals(true, model.dynamicTree().settings().canSelectParentNodes());
        Assertions.assertEquals(true, model.dynamicTree().settings().canSelectLeafNodes());
        Assertions.assertEquals("fehuwaoaguhi", model.dynamicTree().open().operationId());
        Assertions.assertEquals("llizs", model.dynamicTree().open().itemsPath());
        Assertions.assertEquals("csjvhrwef", model.dynamicTree().open().itemValuePath());
        Assertions.assertEquals("wqejpmvsse", model.dynamicTree().open().itemTitlePath());
        Assertions.assertEquals("epwamcxtcz", model.dynamicTree().open().itemFullTitlePath());
        Assertions.assertEquals("peuknijd", model.dynamicTree().open().itemIsParent());
        Assertions.assertEquals("yespydjfbocyv", model.dynamicTree().open().selectableFilter());
        Assertions.assertEquals("tywikd", model.dynamicTree().browse().operationId());
        Assertions.assertEquals("lakuflgbhgauacd", model.dynamicTree().browse().itemsPath());
        Assertions.assertEquals("mxu", model.dynamicTree().browse().itemValuePath());
        Assertions.assertEquals("sryjqgdkfno", model.dynamicTree().browse().itemTitlePath());
        Assertions.assertEquals("eoqbvjhvefgwbmqj", model.dynamicTree().browse().itemFullTitlePath());
        Assertions.assertEquals("ntasfaymxbu", model.dynamicTree().browse().itemIsParent());
        Assertions.assertEquals("zealbmqkyo", model.dynamicTree().browse().selectableFilter());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        SwaggerSchema model =
            new SwaggerSchema()
                .withRef("htkln")
                .withType(SwaggerSchemaType.INTEGER)
                .withTitle("vvkyfedevjboslcq")
                .withItems(
                    new SwaggerSchema()
                        .withRef("okkhminq")
                        .withType(SwaggerSchemaType.INTEGER)
                        .withTitle("zng")
                        .withItems(
                            new SwaggerSchema()
                                .withRef("xxewu")
                                .withType(SwaggerSchemaType.NULL)
                                .withTitle("udbchaqdtv")
                                .withProperties(mapOf())
                                .withAdditionalProperties("datact")
                                .withRequired(
                                    Arrays.asList("dtddmflh", "ytxzvtznapxbanno", "voxczytpr", "nwvroevytlyokrr"))
                                .withMaxProperties(1027800493)
                                .withMinProperties(491107905)
                                .withAllOf(Arrays.asList())
                                .withDiscriminator("asbcrymodizrx")
                                .withReadOnly(true)
                                .withExample("datanazpmk")
                                .withNotificationUrlExtension(false))
                        .withProperties(
                            mapOf(
                                "pckc",
                                new SwaggerSchema()
                                    .withRef("pj")
                                    .withType(SwaggerSchemaType.INTEGER)
                                    .withTitle("liohrd")
                                    .withProperties(mapOf())
                                    .withAdditionalProperties("datagxqbawpcb")
                                    .withRequired(Arrays.asList())
                                    .withMaxProperties(646542935)
                                    .withMinProperties(1480013268)
                                    .withAllOf(Arrays.asList())
                                    .withDiscriminator("apqofyuicdhz")
                                    .withReadOnly(false)
                                    .withExample("datagbdvibidmhmwff")
                                    .withNotificationUrlExtension(true),
                                "um",
                                new SwaggerSchema()
                                    .withRef("rv")
                                    .withType(SwaggerSchemaType.INTEGER)
                                    .withTitle("xoy")
                                    .withProperties(mapOf())
                                    .withAdditionalProperties("datahaim")
                                    .withRequired(Arrays.asList())
                                    .withMaxProperties(1820999589)
                                    .withMinProperties(2080953864)
                                    .withAllOf(Arrays.asList())
                                    .withDiscriminator("shbraga")
                                    .withReadOnly(true)
                                    .withExample("datasvbpavbopfppdbwn")
                                    .withNotificationUrlExtension(true),
                                "abeolhbhlvbm",
                                new SwaggerSchema()
                                    .withRef("jcaacfdmmcpugm")
                                    .withType(SwaggerSchemaType.FILE)
                                    .withTitle("pvufhbze")
                                    .withProperties(mapOf())
                                    .withAdditionalProperties("dataoqhnlb")
                                    .withRequired(Arrays.asList())
                                    .withMaxProperties(1142631362)
                                    .withMinProperties(1888747543)
                                    .withAllOf(Arrays.asList())
                                    .withDiscriminator("clgsc")
                                    .withReadOnly(false)
                                    .withExample("datarsrrmoucsofldp")
                                    .withNotificationUrlExtension(false),
                                "ryvwgcwwpbmzg",
                                new SwaggerSchema()
                                    .withRef("qi")
                                    .withType(SwaggerSchemaType.FILE)
                                    .withTitle("kcudfbsfarfsiowl")
                                    .withProperties(mapOf())
                                    .withAdditionalProperties("dataqpvwgfst")
                                    .withRequired(Arrays.asList())
                                    .withMaxProperties(889840232)
                                    .withMinProperties(1864942425)
                                    .withAllOf(Arrays.asList())
                                    .withDiscriminator("d")
                                    .withReadOnly(false)
                                    .withExample("datacluqvo")
                                    .withNotificationUrlExtension(true)))
                        .withAdditionalProperties("datasydsxwefohe")
                        .withRequired(Arrays.asList("opwndyqleallk", "mtkhlowkxxpvbr", "fjmzsyzfho", "lhikcyychunsj"))
                        .withMaxProperties(1508467198)
                        .withMinProperties(270100126)
                        .withAllOf(
                            Arrays
                                .asList(
                                    new SwaggerSchema()
                                        .withRef("hv")
                                        .withType(SwaggerSchemaType.FILE)
                                        .withTitle("phvtrrmhwrb")
                                        .withProperties(mapOf())
                                        .withAdditionalProperties("dataf")
                                        .withRequired(Arrays.asList())
                                        .withMaxProperties(768394694)
                                        .withMinProperties(591587350)
                                        .withAllOf(Arrays.asList())
                                        .withDiscriminator("r")
                                        .withReadOnly(false)
                                        .withExample("datawhhmemhooc")
                                        .withNotificationUrlExtension(true)))
                        .withDiscriminator("mczjkm")
                        .withReadOnly(true)
                        .withXml(
                            new SwaggerXml()
                                .withName("jxsglhsr")
                                .withNamespace("yejylmbkzudnigrf")
                                .withPrefix("otjewlpxuzzjgnre")
                                .withAttribute(true)
                                .withWrapped(true)
                                .withExtensions(
                                    mapOf("diw", "dataoihiqak", "hcspo", "databrkwpzdqt", "sipi", "dataaqa")))
                        .withExternalDocs(
                            new SwaggerExternalDocumentation()
                                .withDescription("bebjfu")
                                .withUri("moichdlpnfpubntn")
                                .withExtensions(
                                    mapOf(
                                        "cat",
                                        "datazviqsowsaae",
                                        "cwmjvlg",
                                        "datacjuhplrvkm",
                                        "y",
                                        "dataggcvk",
                                        "psfxsf",
                                        "dataizrzb")))
                        .withExample("datatl")
                        .withNotificationUrlExtension(true)
                        .withDynamicSchemaOld(
                            new SwaggerCustomDynamicSchema()
                                .withOperationId("gbwidqlvh")
                                .withValuePath("oveofizrvjfnmj")
                                .withParameters(
                                    mapOf("llfojuidjp", "datawyzgiblkuj", "ovvtzejetjkln", "datauyjucejikzo")))
                        .withDynamicSchemaNew(
                            new SwaggerCustomDynamicProperties()
                                .withOperationId("yjuzkdb")
                                .withValuePath("o")
                                .withParameters(mapOf()))
                        .withDynamicListNew(
                            new SwaggerCustomDynamicList()
                                .withOperationId("hqjwtrhtgvg")
                                .withBuiltInOperation("c")
                                .withItemsPath("kolawjmjsmwrokc")
                                .withItemValuePath("fzzzwyjafitlhg")
                                .withItemTitlePath("nuchlgmltxdwhmo")
                                .withParameters(mapOf()))
                        .withDynamicTree(new SwaggerCustomDynamicTree()))
                .withProperties(
                    mapOf(
                        "gddeimaw",
                        new SwaggerSchema()
                            .withRef("nj")
                            .withType(SwaggerSchemaType.INTEGER)
                            .withTitle("folpymwamxqzra")
                            .withItems(
                                new SwaggerSchema()
                                    .withRef("dphtv")
                                    .withType(SwaggerSchemaType.NUMBER)
                                    .withTitle("jvlej")
                                    .withProperties(mapOf())
                                    .withAdditionalProperties("datarlzk")
                                    .withRequired(Arrays.asList())
                                    .withMaxProperties(667275674)
                                    .withMinProperties(1896636277)
                                    .withAllOf(Arrays.asList())
                                    .withDiscriminator("pdwvnphcn")
                                    .withReadOnly(false)
                                    .withExample("datamqrhvthl")
                                    .withNotificationUrlExtension(true))
                            .withProperties(mapOf())
                            .withAdditionalProperties("datazhzdtxetlgydlhqv")
                            .withRequired(Arrays.asList("pxy", "afiqgeaarbgjekg", "klbyulidwcw"))
                            .withMaxProperties(1795651624)
                            .withMinProperties(398992576)
                            .withAllOf(Arrays.asList())
                            .withDiscriminator("fhjirwgdnqzbrfk")
                            .withReadOnly(true)
                            .withXml(
                                new SwaggerXml()
                                    .withName("mtksjcitdigsx")
                                    .withNamespace("gljplkeuachtomfl")
                                    .withPrefix("tswfpfmdgycxnms")
                                    .withAttribute(false)
                                    .withWrapped(true)
                                    .withExtensions(mapOf()))
                            .withExternalDocs(
                                new SwaggerExternalDocumentation()
                                    .withDescription("lurlpshhkvp")
                                    .withUri("wqslsrhmpqvw")
                                    .withExtensions(mapOf()))
                            .withExample("dataondcbrw")
                            .withNotificationUrlExtension(true)
                            .withDynamicSchemaOld(
                                new SwaggerCustomDynamicSchema()
                                    .withOperationId("ej")
                                    .withValuePath("ovyrrleaesinu")
                                    .withParameters(mapOf()))
                            .withDynamicSchemaNew(
                                new SwaggerCustomDynamicProperties()
                                    .withOperationId("qobbpihehcec")
                                    .withValuePath("mrqbrjbbmpxdlv")
                                    .withParameters(mapOf()))
                            .withDynamicListNew(
                                new SwaggerCustomDynamicList()
                                    .withOperationId("e")
                                    .withBuiltInOperation("rseqwjksghudgz")
                                    .withItemsPath("ogjggsvoujkxibda")
                                    .withItemValuePath("rkmdyom")
                                    .withItemTitlePath("fbvfbhdy")
                                    .withParameters(mapOf()))
                            .withDynamicTree(new SwaggerCustomDynamicTree()),
                        "b",
                        new SwaggerSchema()
                            .withRef("vgkk")
                            .withType(SwaggerSchemaType.STRING)
                            .withTitle("kjcjcaztbwsnsqow")
                            .withItems(
                                new SwaggerSchema()
                                    .withRef("omlik")
                                    .withType(SwaggerSchemaType.FILE)
                                    .withTitle("czcswka")
                                    .withProperties(mapOf())
                                    .withAdditionalProperties("datayfdvlvhbwrnfxtgd")
                                    .withRequired(Arrays.asList())
                                    .withMaxProperties(529094053)
                                    .withMinProperties(1316745863)
                                    .withAllOf(Arrays.asList())
                                    .withDiscriminator("mnaoy")
                                    .withReadOnly(true)
                                    .withExample("dataqswankltytmhdr")
                                    .withNotificationUrlExtension(false))
                            .withProperties(mapOf())
                            .withAdditionalProperties("datagjc")
                            .withRequired(Arrays.asList("uxhemlwywaeeczg", "bukklels"))
                            .withMaxProperties(812614891)
                            .withMinProperties(1378797079)
                            .withAllOf(Arrays.asList())
                            .withDiscriminator("zujksrlsmdes")
                            .withReadOnly(true)
                            .withXml(
                                new SwaggerXml()
                                    .withName("mjc")
                                    .withNamespace("ewbidyvteowxv")
                                    .withPrefix("iudeu")
                                    .withAttribute(false)
                                    .withWrapped(false)
                                    .withExtensions(mapOf()))
                            .withExternalDocs(
                                new SwaggerExternalDocumentation()
                                    .withDescription("axwk")
                                    .withUri("ykhv")
                                    .withExtensions(mapOf()))
                            .withExample("dataepmrut")
                            .withNotificationUrlExtension(true)
                            .withDynamicSchemaOld(
                                new SwaggerCustomDynamicSchema()
                                    .withOperationId("obns")
                                    .withValuePath("jdjltymkmvgui")
                                    .withParameters(mapOf()))
                            .withDynamicSchemaNew(
                                new SwaggerCustomDynamicProperties()
                                    .withOperationId("rtspphkixkykxds")
                                    .withValuePath("pemmucfxhik")
                                    .withParameters(mapOf()))
                            .withDynamicListNew(
                                new SwaggerCustomDynamicList()
                                    .withOperationId("mymyincqlhri")
                                    .withBuiltInOperation("sl")
                                    .withItemsPath("iiovgqcgxu")
                                    .withItemValuePath("qkctotiowlxte")
                                    .withItemTitlePath("ptjgwdt")
                                    .withParameters(mapOf()))
                            .withDynamicTree(new SwaggerCustomDynamicTree()),
                        "ghpxycphdr",
                        new SwaggerSchema()
                            .withRef("phqlkccuz")
                            .withType(SwaggerSchemaType.NUMBER)
                            .withTitle("wahoiul")
                            .withItems(
                                new SwaggerSchema()
                                    .withRef("iip")
                                    .withType(SwaggerSchemaType.NULL)
                                    .withTitle("awuwzdufypivls")
                                    .withProperties(mapOf())
                                    .withAdditionalProperties("datamcub")
                                    .withRequired(Arrays.asList())
                                    .withMaxProperties(979719381)
                                    .withMinProperties(619083561)
                                    .withAllOf(Arrays.asList())
                                    .withDiscriminator("ubvphavpmhbrbqgv")
                                    .withReadOnly(false)
                                    .withExample("datattefjoknssq")
                                    .withNotificationUrlExtension(true))
                            .withProperties(mapOf())
                            .withAdditionalProperties("datadb")
                            .withRequired(Arrays.asList("rjgeih", "qlggwfi", "zcxmjpbyep", "mgtvlj"))
                            .withMaxProperties(1171245463)
                            .withMinProperties(901010629)
                            .withAllOf(Arrays.asList())
                            .withDiscriminator("pgxh")
                            .withReadOnly(true)
                            .withXml(
                                new SwaggerXml()
                                    .withName("qwcabvnui")
                                    .withNamespace("ey")
                                    .withPrefix("wlpaugmrmfjlrxwt")
                                    .withAttribute(false)
                                    .withWrapped(true)
                                    .withExtensions(mapOf()))
                            .withExternalDocs(
                                new SwaggerExternalDocumentation()
                                    .withDescription("cisiz")
                                    .withUri("a")
                                    .withExtensions(mapOf()))
                            .withExample("dataxjw")
                            .withNotificationUrlExtension(true)
                            .withDynamicSchemaOld(
                                new SwaggerCustomDynamicSchema()
                                    .withOperationId("wcgyeewxeiqb")
                                    .withValuePath("mgomg")
                                    .withParameters(mapOf()))
                            .withDynamicSchemaNew(
                                new SwaggerCustomDynamicProperties()
                                    .withOperationId("jdlrgmsplzgaufc")
                                    .withValuePath("hvn")
                                    .withParameters(mapOf()))
                            .withDynamicListNew(
                                new SwaggerCustomDynamicList()
                                    .withOperationId("xkym")
                                    .withBuiltInOperation("anxrj")
                                    .withItemsPath("xtwbta")
                                    .withItemValuePath("pnyghs")
                                    .withItemTitlePath("cyl")
                                    .withParameters(mapOf()))
                            .withDynamicTree(new SwaggerCustomDynamicTree()),
                        "eakxcptsoqfyi",
                        new SwaggerSchema()
                            .withRef("jkhvyomacluzvxnq")
                            .withType(SwaggerSchemaType.INTEGER)
                            .withTitle("qpd")
                            .withItems(
                                new SwaggerSchema()
                                    .withRef("kois")
                                    .withType(SwaggerSchemaType.ARRAY)
                                    .withTitle("f")
                                    .withProperties(mapOf())
                                    .withAdditionalProperties("datafmcsypobkd")
                                    .withRequired(Arrays.asList())
                                    .withMaxProperties(1367388370)
                                    .withMinProperties(36520302)
                                    .withAllOf(Arrays.asList())
                                    .withDiscriminator("ollg")
                                    .withReadOnly(true)
                                    .withExample("datadmxzjijpv")
                                    .withNotificationUrlExtension(false))
                            .withProperties(mapOf())
                            .withAdditionalProperties("dataldefxrdcoxn")
                            .withRequired(Arrays.asList("ja", "urnnqbnqbpiz"))
                            .withMaxProperties(1320210433)
                            .withMinProperties(2017016107)
                            .withAllOf(Arrays.asList())
                            .withDiscriminator("gypxrxvbfihwuhvc")
                            .withReadOnly(false)
                            .withXml(
                                new SwaggerXml()
                                    .withName("bxrblmliowxihspn")
                                    .withNamespace("qagnepzwakl")
                                    .withPrefix("sbq")
                                    .withAttribute(true)
                                    .withWrapped(true)
                                    .withExtensions(mapOf()))
                            .withExternalDocs(
                                new SwaggerExternalDocumentation()
                                    .withDescription("ao")
                                    .withUri("isglrrc")
                                    .withExtensions(mapOf()))
                            .withExample("datak")
                            .withNotificationUrlExtension(false)
                            .withDynamicSchemaOld(
                                new SwaggerCustomDynamicSchema()
                                    .withOperationId("jadhqoawj")
                                    .withValuePath("yueayfbpcmsp")
                                    .withParameters(mapOf()))
                            .withDynamicSchemaNew(
                                new SwaggerCustomDynamicProperties()
                                    .withOperationId("rueqthwm")
                                    .withValuePath("mbscbbx")
                                    .withParameters(mapOf()))
                            .withDynamicListNew(
                                new SwaggerCustomDynamicList()
                                    .withOperationId("xiidloped")
                                    .withBuiltInOperation("dpyqyybxubmd")
                                    .withItemsPath("fcbqwremjela")
                                    .withItemValuePath("cigeleohdbvqvw")
                                    .withItemTitlePath("jopwbeonrlkwz")
                                    .withParameters(mapOf()))
                            .withDynamicTree(new SwaggerCustomDynamicTree())))
                .withAdditionalProperties("datae")
                .withRequired(Arrays.asList("krtt", "razisg", "kiuemv"))
                .withMaxProperties(920951306)
                .withMinProperties(374978573)
                .withAllOf(
                    Arrays
                        .asList(
                            new SwaggerSchema()
                                .withRef("nrxxbsojklin")
                                .withType(SwaggerSchemaType.ARRAY)
                                .withTitle("tysprqsgnzxojpsl")
                                .withItems(
                                    new SwaggerSchema()
                                        .withRef("g")
                                        .withType(SwaggerSchemaType.BOOLEAN)
                                        .withTitle("fiqwoy")
                                        .withProperties(mapOf())
                                        .withAdditionalProperties("datapcohhoucqpqojx")
                                        .withRequired(Arrays.asList())
                                        .withMaxProperties(2079376859)
                                        .withMinProperties(1211058395)
                                        .withAllOf(Arrays.asList())
                                        .withDiscriminator("dzbenri")
                                        .withReadOnly(false)
                                        .withExample("datazqddtjwfljhzn")
                                        .withNotificationUrlExtension(true))
                                .withProperties(mapOf())
                                .withAdditionalProperties("datajj")
                                .withRequired(Arrays.asList("tjzmi", "vgbgatzuuvbxng", "ebwgga"))
                                .withMaxProperties(1978368742)
                                .withMinProperties(1156590862)
                                .withAllOf(Arrays.asList())
                                .withDiscriminator("ajqfutlx")
                                .withReadOnly(true)
                                .withXml(
                                    new SwaggerXml()
                                        .withName("sunwqrjzfrgqhaoh")
                                        .withNamespace("buocnjr")
                                        .withPrefix("mbpyryxamebly")
                                        .withAttribute(false)
                                        .withWrapped(false)
                                        .withExtensions(mapOf()))
                                .withExternalDocs(
                                    new SwaggerExternalDocumentation()
                                        .withDescription("ocxnehvsmtodl")
                                        .withUri("yapucygvoa")
                                        .withExtensions(mapOf()))
                                .withExample("datanssxlgh")
                                .withNotificationUrlExtension(true)
                                .withDynamicSchemaOld(
                                    new SwaggerCustomDynamicSchema()
                                        .withOperationId("lgvvpaseksgbu")
                                        .withValuePath("ntuygdhgaqipir")
                                        .withParameters(mapOf()))
                                .withDynamicSchemaNew(
                                    new SwaggerCustomDynamicProperties()
                                        .withOperationId("qofu")
                                        .withValuePath("pmjnlexwhcb")
                                        .withParameters(mapOf()))
                                .withDynamicListNew(
                                    new SwaggerCustomDynamicList()
                                        .withOperationId("k")
                                        .withBuiltInOperation("hu")
                                        .withItemsPath("erctatoyin")
                                        .withItemValuePath("pbrlcyrduczkgofx")
                                        .withItemTitlePath("srucvcrrpcjtt")
                                        .withParameters(mapOf()))
                                .withDynamicTree(new SwaggerCustomDynamicTree())))
                .withDiscriminator("qnrmvvfko")
                .withReadOnly(true)
                .withXml(
                    new SwaggerXml()
                        .withName("ktuidvrm")
                        .withNamespace("lpdwwexymzvlazi")
                        .withPrefix("hpwvqsgnyyuu")
                        .withAttribute(false)
                        .withWrapped(false)
                        .withExtensions(mapOf("gsksrfhf", "datapmeyyvpkpatlbijp", "bnxwc", "dataolmk")))
                .withExternalDocs(
                    new SwaggerExternalDocumentation()
                        .withDescription("mp")
                        .withUri("qa")
                        .withExtensions(mapOf("uiaclkiexhajlfn", "datagbrt", "b", "datahiqfyuttdiy")))
                .withExample("datan")
                .withNotificationUrlExtension(true)
                .withDynamicSchemaOld(
                    new SwaggerCustomDynamicSchema()
                        .withOperationId("xkyctwwgzwx")
                        .withValuePath("mecvogygzyvneeza")
                        .withParameters(mapOf("jjjavfqnvhnq", "datahtmoqqtlffhzbkr")))
                .withDynamicSchemaNew(
                    new SwaggerCustomDynamicProperties()
                        .withOperationId("dogiyetesyp")
                        .withValuePath("dbztjhqtfbov")
                        .withParameters(
                            mapOf(
                                "n",
                                new SwaggerCustomDynamicProperties()
                                    .withOperationId("bwetnjuhpsp")
                                    .withValuePath("zyaupiac")
                                    .withParameters(mapOf()))))
                .withDynamicListNew(
                    new SwaggerCustomDynamicList()
                        .withOperationId("wqro")
                        .withBuiltInOperation("tuovmaonurj")
                        .withItemsPath("mghihp")
                        .withItemValuePath("cmslclblyjxltbs")
                        .withItemTitlePath("scvsfxigctm")
                        .withParameters(
                            mapOf(
                                "gwldo",
                                new SwaggerCustomDynamicProperties()
                                    .withOperationId("pbezqccydrtceu")
                                    .withValuePath("qkkyihztgeqmg")
                                    .withParameters(mapOf()))))
                .withDynamicTree(
                    new SwaggerCustomDynamicTree()
                        .withSettings(
                            new SwaggerCustomDynamicTreeSettings()
                                .withCanSelectParentNodes(true)
                                .withCanSelectLeafNodes(true))
                        .withOpen(
                            new SwaggerCustomDynamicTreeCommand()
                                .withOperationId("fehuwaoaguhi")
                                .withItemsPath("llizs")
                                .withItemValuePath("csjvhrwef")
                                .withItemTitlePath("wqejpmvsse")
                                .withItemFullTitlePath("epwamcxtcz")
                                .withItemIsParent("peuknijd")
                                .withSelectableFilter("yespydjfbocyv")
                                .withParameters(mapOf()))
                        .withBrowse(
                            new SwaggerCustomDynamicTreeCommand()
                                .withOperationId("tywikd")
                                .withItemsPath("lakuflgbhgauacd")
                                .withItemValuePath("mxu")
                                .withItemTitlePath("sryjqgdkfno")
                                .withItemFullTitlePath("eoqbvjhvefgwbmqj")
                                .withItemIsParent("ntasfaymxbu")
                                .withSelectableFilter("zealbmqkyo")
                                .withParameters(mapOf())));
        model = BinaryData.fromObject(model).toObject(SwaggerSchema.class);
        Assertions.assertEquals("htkln", model.ref());
        Assertions.assertEquals(SwaggerSchemaType.INTEGER, model.type());
        Assertions.assertEquals("vvkyfedevjboslcq", model.title());
        Assertions.assertEquals("okkhminq", model.items().ref());
        Assertions.assertEquals(SwaggerSchemaType.INTEGER, model.items().type());
        Assertions.assertEquals("zng", model.items().title());
        Assertions.assertEquals("xxewu", model.items().items().ref());
        Assertions.assertEquals(SwaggerSchemaType.NULL, model.items().items().type());
        Assertions.assertEquals("udbchaqdtv", model.items().items().title());
        Assertions.assertEquals("dtddmflh", model.items().items().required().get(0));
        Assertions.assertEquals(1027800493, model.items().items().maxProperties());
        Assertions.assertEquals(491107905, model.items().items().minProperties());
        Assertions.assertEquals("asbcrymodizrx", model.items().items().discriminator());
        Assertions.assertEquals(true, model.items().items().readOnly());
        Assertions.assertEquals(false, model.items().items().notificationUrlExtension());
        Assertions.assertEquals("pj", model.items().properties().get("pckc").ref());
        Assertions.assertEquals(SwaggerSchemaType.INTEGER, model.items().properties().get("pckc").type());
        Assertions.assertEquals("liohrd", model.items().properties().get("pckc").title());
        Assertions.assertEquals(646542935, model.items().properties().get("pckc").maxProperties());
        Assertions.assertEquals(1480013268, model.items().properties().get("pckc").minProperties());
        Assertions.assertEquals("apqofyuicdhz", model.items().properties().get("pckc").discriminator());
        Assertions.assertEquals(false, model.items().properties().get("pckc").readOnly());
        Assertions.assertEquals(true, model.items().properties().get("pckc").notificationUrlExtension());
        Assertions.assertEquals("opwndyqleallk", model.items().required().get(0));
        Assertions.assertEquals(1508467198, model.items().maxProperties());
        Assertions.assertEquals(270100126, model.items().minProperties());
        Assertions.assertEquals("hv", model.items().allOf().get(0).ref());
        Assertions.assertEquals(SwaggerSchemaType.FILE, model.items().allOf().get(0).type());
        Assertions.assertEquals("phvtrrmhwrb", model.items().allOf().get(0).title());
        Assertions.assertEquals(768394694, model.items().allOf().get(0).maxProperties());
        Assertions.assertEquals(591587350, model.items().allOf().get(0).minProperties());
        Assertions.assertEquals("r", model.items().allOf().get(0).discriminator());
        Assertions.assertEquals(false, model.items().allOf().get(0).readOnly());
        Assertions.assertEquals(true, model.items().allOf().get(0).notificationUrlExtension());
        Assertions.assertEquals("mczjkm", model.items().discriminator());
        Assertions.assertEquals(true, model.items().readOnly());
        Assertions.assertEquals("jxsglhsr", model.items().xml().name());
        Assertions.assertEquals("yejylmbkzudnigrf", model.items().xml().namespace());
        Assertions.assertEquals("otjewlpxuzzjgnre", model.items().xml().prefix());
        Assertions.assertEquals(true, model.items().xml().attribute());
        Assertions.assertEquals(true, model.items().xml().wrapped());
        Assertions.assertEquals("bebjfu", model.items().externalDocs().description());
        Assertions.assertEquals("moichdlpnfpubntn", model.items().externalDocs().uri());
        Assertions.assertEquals(true, model.items().notificationUrlExtension());
        Assertions.assertEquals("gbwidqlvh", model.items().dynamicSchemaOld().operationId());
        Assertions.assertEquals("oveofizrvjfnmj", model.items().dynamicSchemaOld().valuePath());
        Assertions.assertEquals("yjuzkdb", model.items().dynamicSchemaNew().operationId());
        Assertions.assertEquals("o", model.items().dynamicSchemaNew().valuePath());
        Assertions.assertEquals("hqjwtrhtgvg", model.items().dynamicListNew().operationId());
        Assertions.assertEquals("c", model.items().dynamicListNew().builtInOperation());
        Assertions.assertEquals("kolawjmjsmwrokc", model.items().dynamicListNew().itemsPath());
        Assertions.assertEquals("fzzzwyjafitlhg", model.items().dynamicListNew().itemValuePath());
        Assertions.assertEquals("nuchlgmltxdwhmo", model.items().dynamicListNew().itemTitlePath());
        Assertions.assertEquals("nj", model.properties().get("gddeimaw").ref());
        Assertions.assertEquals(SwaggerSchemaType.INTEGER, model.properties().get("gddeimaw").type());
        Assertions.assertEquals("folpymwamxqzra", model.properties().get("gddeimaw").title());
        Assertions.assertEquals("dphtv", model.properties().get("gddeimaw").items().ref());
        Assertions.assertEquals(SwaggerSchemaType.NUMBER, model.properties().get("gddeimaw").items().type());
        Assertions.assertEquals("jvlej", model.properties().get("gddeimaw").items().title());
        Assertions.assertEquals(667275674, model.properties().get("gddeimaw").items().maxProperties());
        Assertions.assertEquals(1896636277, model.properties().get("gddeimaw").items().minProperties());
        Assertions.assertEquals("pdwvnphcn", model.properties().get("gddeimaw").items().discriminator());
        Assertions.assertEquals(false, model.properties().get("gddeimaw").items().readOnly());
        Assertions.assertEquals(true, model.properties().get("gddeimaw").items().notificationUrlExtension());
        Assertions.assertEquals("pxy", model.properties().get("gddeimaw").required().get(0));
        Assertions.assertEquals(1795651624, model.properties().get("gddeimaw").maxProperties());
        Assertions.assertEquals(398992576, model.properties().get("gddeimaw").minProperties());
        Assertions.assertEquals("fhjirwgdnqzbrfk", model.properties().get("gddeimaw").discriminator());
        Assertions.assertEquals(true, model.properties().get("gddeimaw").readOnly());
        Assertions.assertEquals("mtksjcitdigsx", model.properties().get("gddeimaw").xml().name());
        Assertions.assertEquals("gljplkeuachtomfl", model.properties().get("gddeimaw").xml().namespace());
        Assertions.assertEquals("tswfpfmdgycxnms", model.properties().get("gddeimaw").xml().prefix());
        Assertions.assertEquals(false, model.properties().get("gddeimaw").xml().attribute());
        Assertions.assertEquals(true, model.properties().get("gddeimaw").xml().wrapped());
        Assertions.assertEquals("lurlpshhkvp", model.properties().get("gddeimaw").externalDocs().description());
        Assertions.assertEquals("wqslsrhmpqvw", model.properties().get("gddeimaw").externalDocs().uri());
        Assertions.assertEquals(true, model.properties().get("gddeimaw").notificationUrlExtension());
        Assertions.assertEquals("ej", model.properties().get("gddeimaw").dynamicSchemaOld().operationId());
        Assertions.assertEquals("ovyrrleaesinu", model.properties().get("gddeimaw").dynamicSchemaOld().valuePath());
        Assertions.assertEquals("qobbpihehcec", model.properties().get("gddeimaw").dynamicSchemaNew().operationId());
        Assertions.assertEquals("mrqbrjbbmpxdlv", model.properties().get("gddeimaw").dynamicSchemaNew().valuePath());
        Assertions.assertEquals("e", model.properties().get("gddeimaw").dynamicListNew().operationId());
        Assertions
            .assertEquals("rseqwjksghudgz", model.properties().get("gddeimaw").dynamicListNew().builtInOperation());
        Assertions.assertEquals("ogjggsvoujkxibda", model.properties().get("gddeimaw").dynamicListNew().itemsPath());
        Assertions.assertEquals("rkmdyom", model.properties().get("gddeimaw").dynamicListNew().itemValuePath());
        Assertions.assertEquals("fbvfbhdy", model.properties().get("gddeimaw").dynamicListNew().itemTitlePath());
        Assertions.assertEquals("krtt", model.required().get(0));
        Assertions.assertEquals(920951306, model.maxProperties());
        Assertions.assertEquals(374978573, model.minProperties());
        Assertions.assertEquals("nrxxbsojklin", model.allOf().get(0).ref());
        Assertions.assertEquals(SwaggerSchemaType.ARRAY, model.allOf().get(0).type());
        Assertions.assertEquals("tysprqsgnzxojpsl", model.allOf().get(0).title());
        Assertions.assertEquals("g", model.allOf().get(0).items().ref());
        Assertions.assertEquals(SwaggerSchemaType.BOOLEAN, model.allOf().get(0).items().type());
        Assertions.assertEquals("fiqwoy", model.allOf().get(0).items().title());
        Assertions.assertEquals(2079376859, model.allOf().get(0).items().maxProperties());
        Assertions.assertEquals(1211058395, model.allOf().get(0).items().minProperties());
        Assertions.assertEquals("dzbenri", model.allOf().get(0).items().discriminator());
        Assertions.assertEquals(false, model.allOf().get(0).items().readOnly());
        Assertions.assertEquals(true, model.allOf().get(0).items().notificationUrlExtension());
        Assertions.assertEquals("tjzmi", model.allOf().get(0).required().get(0));
        Assertions.assertEquals(1978368742, model.allOf().get(0).maxProperties());
        Assertions.assertEquals(1156590862, model.allOf().get(0).minProperties());
        Assertions.assertEquals("ajqfutlx", model.allOf().get(0).discriminator());
        Assertions.assertEquals(true, model.allOf().get(0).readOnly());
        Assertions.assertEquals("sunwqrjzfrgqhaoh", model.allOf().get(0).xml().name());
        Assertions.assertEquals("buocnjr", model.allOf().get(0).xml().namespace());
        Assertions.assertEquals("mbpyryxamebly", model.allOf().get(0).xml().prefix());
        Assertions.assertEquals(false, model.allOf().get(0).xml().attribute());
        Assertions.assertEquals(false, model.allOf().get(0).xml().wrapped());
        Assertions.assertEquals("ocxnehvsmtodl", model.allOf().get(0).externalDocs().description());
        Assertions.assertEquals("yapucygvoa", model.allOf().get(0).externalDocs().uri());
        Assertions.assertEquals(true, model.allOf().get(0).notificationUrlExtension());
        Assertions.assertEquals("lgvvpaseksgbu", model.allOf().get(0).dynamicSchemaOld().operationId());
        Assertions.assertEquals("ntuygdhgaqipir", model.allOf().get(0).dynamicSchemaOld().valuePath());
        Assertions.assertEquals("qofu", model.allOf().get(0).dynamicSchemaNew().operationId());
        Assertions.assertEquals("pmjnlexwhcb", model.allOf().get(0).dynamicSchemaNew().valuePath());
        Assertions.assertEquals("k", model.allOf().get(0).dynamicListNew().operationId());
        Assertions.assertEquals("hu", model.allOf().get(0).dynamicListNew().builtInOperation());
        Assertions.assertEquals("erctatoyin", model.allOf().get(0).dynamicListNew().itemsPath());
        Assertions.assertEquals("pbrlcyrduczkgofx", model.allOf().get(0).dynamicListNew().itemValuePath());
        Assertions.assertEquals("srucvcrrpcjtt", model.allOf().get(0).dynamicListNew().itemTitlePath());
        Assertions.assertEquals("qnrmvvfko", model.discriminator());
        Assertions.assertEquals(true, model.readOnly());
        Assertions.assertEquals("ktuidvrm", model.xml().name());
        Assertions.assertEquals("lpdwwexymzvlazi", model.xml().namespace());
        Assertions.assertEquals("hpwvqsgnyyuu", model.xml().prefix());
        Assertions.assertEquals(false, model.xml().attribute());
        Assertions.assertEquals(false, model.xml().wrapped());
        Assertions.assertEquals("mp", model.externalDocs().description());
        Assertions.assertEquals("qa", model.externalDocs().uri());
        Assertions.assertEquals(true, model.notificationUrlExtension());
        Assertions.assertEquals("xkyctwwgzwx", model.dynamicSchemaOld().operationId());
        Assertions.assertEquals("mecvogygzyvneeza", model.dynamicSchemaOld().valuePath());
        Assertions.assertEquals("dogiyetesyp", model.dynamicSchemaNew().operationId());
        Assertions.assertEquals("dbztjhqtfbov", model.dynamicSchemaNew().valuePath());
        Assertions.assertEquals("bwetnjuhpsp", model.dynamicSchemaNew().parameters().get("n").operationId());
        Assertions.assertEquals("zyaupiac", model.dynamicSchemaNew().parameters().get("n").valuePath());
        Assertions.assertEquals("wqro", model.dynamicListNew().operationId());
        Assertions.assertEquals("tuovmaonurj", model.dynamicListNew().builtInOperation());
        Assertions.assertEquals("mghihp", model.dynamicListNew().itemsPath());
        Assertions.assertEquals("cmslclblyjxltbs", model.dynamicListNew().itemValuePath());
        Assertions.assertEquals("scvsfxigctm", model.dynamicListNew().itemTitlePath());
        Assertions.assertEquals("pbezqccydrtceu", model.dynamicListNew().parameters().get("gwldo").operationId());
        Assertions.assertEquals("qkkyihztgeqmg", model.dynamicListNew().parameters().get("gwldo").valuePath());
        Assertions.assertEquals(true, model.dynamicTree().settings().canSelectParentNodes());
        Assertions.assertEquals(true, model.dynamicTree().settings().canSelectLeafNodes());
        Assertions.assertEquals("fehuwaoaguhi", model.dynamicTree().open().operationId());
        Assertions.assertEquals("llizs", model.dynamicTree().open().itemsPath());
        Assertions.assertEquals("csjvhrwef", model.dynamicTree().open().itemValuePath());
        Assertions.assertEquals("wqejpmvsse", model.dynamicTree().open().itemTitlePath());
        Assertions.assertEquals("epwamcxtcz", model.dynamicTree().open().itemFullTitlePath());
        Assertions.assertEquals("peuknijd", model.dynamicTree().open().itemIsParent());
        Assertions.assertEquals("yespydjfbocyv", model.dynamicTree().open().selectableFilter());
        Assertions.assertEquals("tywikd", model.dynamicTree().browse().operationId());
        Assertions.assertEquals("lakuflgbhgauacd", model.dynamicTree().browse().itemsPath());
        Assertions.assertEquals("mxu", model.dynamicTree().browse().itemValuePath());
        Assertions.assertEquals("sryjqgdkfno", model.dynamicTree().browse().itemTitlePath());
        Assertions.assertEquals("eoqbvjhvefgwbmqj", model.dynamicTree().browse().itemFullTitlePath());
        Assertions.assertEquals("ntasfaymxbu", model.dynamicTree().browse().itemIsParent());
        Assertions.assertEquals("zealbmqkyo", model.dynamicTree().browse().selectableFilter());
    }

    @SuppressWarnings("unchecked")
    private static <T> Map<String, T> mapOf(Object... inputs) {
        Map<String, T> map = new HashMap<>();
        for (int i = 0; i < inputs.length; i += 2) {
            String key = (String) inputs[i];
            T value = (T) inputs[i + 1];
            map.put(key, value);
        }
        return map;
    }
}
