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

package com.azure.resourcemanager.delegatednetwork.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.delegatednetwork.models.SubnetDetails;
import org.junit.jupiter.api.Assertions;

public final class SubnetDetailsTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        SubnetDetails model = BinaryData.fromString("{\"id\":\"bhj\"}").toObject(SubnetDetails.class);
        Assertions.assertEquals("bhj", model.id());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        SubnetDetails model = new SubnetDetails().withId("bhj");
        model = BinaryData.fromObject(model).toObject(SubnetDetails.class);
        Assertions.assertEquals("bhj", model.id());
    }
}
