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

package com.azure.resourcemanager.machinelearning.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.machinelearning.models.DataPathAssetReference;
import org.junit.jupiter.api.Assertions;

public final class DataPathAssetReferenceTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DataPathAssetReference model =
            BinaryData
                .fromString(
                    "{\"referenceType\":\"DataPath\",\"datastoreId\":\"uwxeoiojfizf\",\"path\":\"kjzwfbcyayk\"}")
                .toObject(DataPathAssetReference.class);
        Assertions.assertEquals("uwxeoiojfizf", model.datastoreId());
        Assertions.assertEquals("kjzwfbcyayk", model.path());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        DataPathAssetReference model =
            new DataPathAssetReference().withDatastoreId("uwxeoiojfizf").withPath("kjzwfbcyayk");
        model = BinaryData.fromObject(model).toObject(DataPathAssetReference.class);
        Assertions.assertEquals("uwxeoiojfizf", model.datastoreId());
        Assertions.assertEquals("kjzwfbcyayk", model.path());
    }
}
