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

package com.azure.resourcemanager.devtestlabs.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.devtestlabs.fluent.models.ServiceFabricPropertiesInner;
import org.junit.jupiter.api.Assertions;

public final class ServiceFabricPropertiesInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ServiceFabricPropertiesInner model =
            BinaryData
                .fromString(
                    "{\"externalServiceFabricId\":\"lzkwrrwoy\",\"environmentId\":\"ucwyhahno\",\"applicableSchedule\":{\"properties\":{},\"location\":\"ywuhpsvfuur\",\"tags\":{\"xwlalniexzsrzpg\":\"we\",\"wpgdak\":\"pqtybb\"},\"id\":\"hzyvlixqnrkcx\",\"name\":\"jibnxmysu\",\"type\":\"swqrntvlwijp\"},\"provisioningState\":\"texoqqpwc\",\"uniqueIdentifier\":\"ufmhrunc\"}")
                .toObject(ServiceFabricPropertiesInner.class);
        Assertions.assertEquals("lzkwrrwoy", model.externalServiceFabricId());
        Assertions.assertEquals("ucwyhahno", model.environmentId());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ServiceFabricPropertiesInner model =
            new ServiceFabricPropertiesInner().withExternalServiceFabricId("lzkwrrwoy").withEnvironmentId("ucwyhahno");
        model = BinaryData.fromObject(model).toObject(ServiceFabricPropertiesInner.class);
        Assertions.assertEquals("lzkwrrwoy", model.externalServiceFabricId());
        Assertions.assertEquals("ucwyhahno", model.environmentId());
    }
}
