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

package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PredefinedUrlCategory;
import org.junit.jupiter.api.Assertions;

public final class PredefinedUrlCategoryTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        PredefinedUrlCategory model =
            BinaryData
                .fromString("{\"action\":\"vvnchrkcc\",\"name\":\"wwzjuqkhrsajiwku\"}")
                .toObject(PredefinedUrlCategory.class);
        Assertions.assertEquals("vvnchrkcc", model.action());
        Assertions.assertEquals("wwzjuqkhrsajiwku", model.name());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        PredefinedUrlCategory model = new PredefinedUrlCategory().withAction("vvnchrkcc").withName("wwzjuqkhrsajiwku");
        model = BinaryData.fromObject(model).toObject(PredefinedUrlCategory.class);
        Assertions.assertEquals("vvnchrkcc", model.action());
        Assertions.assertEquals("wwzjuqkhrsajiwku", model.name());
    }
}
