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

package com.azure.resourcemanager.security.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.security.models.CustomEntityStoreAssignmentsListResult;
import org.junit.jupiter.api.Assertions;

public final class CustomEntityStoreAssignmentsListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        CustomEntityStoreAssignmentsListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"principal\":\"j\",\"entityStoreDatabaseLink\":\"hbcryffdfdosyge\"},\"id\":\"paojakhmsbzjh\",\"name\":\"rzevdphlxaol\",\"type\":\"hqtrgqjbpf\"},{\"properties\":{\"principal\":\"n\",\"entityStoreDatabaseLink\":\"v\"},\"id\":\"cjrwzoxxjtfellu\",\"name\":\"fziton\",\"type\":\"eqfpj\"},{\"properties\":{\"principal\":\"ofpdvh\",\"entityStoreDatabaseLink\":\"xxypininmay\"},\"id\":\"uybbkpodep\",\"name\":\"oginuvamiheognar\",\"type\":\"zxtheotusivyevcc\"}],\"nextLink\":\"ihnhun\"}")
                .toObject(CustomEntityStoreAssignmentsListResult.class);
        Assertions.assertEquals("ihnhun", model.nextLink());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        CustomEntityStoreAssignmentsListResult model =
            new CustomEntityStoreAssignmentsListResult().withNextLink("ihnhun");
        model = BinaryData.fromObject(model).toObject(CustomEntityStoreAssignmentsListResult.class);
        Assertions.assertEquals("ihnhun", model.nextLink());
    }
}
