@@ -0,0 +1,949 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.%0A// Licensed under the MIT License.%0A%0Apackage com.azure.core.management;%0A%0Aimport com.azure.core.management.serializer.AzureJacksonAdapter;%0Aimport com.azure.core.util.serializer.SerializerEncoding;%0Aimport org.junit.jupiter.api.Assertions;%0Aimport org.junit.jupiter.api.Test;%0A%0Aimport java.io.IOException;%0A%0Apublic class CloudExceptionTests %7B%0A%0A    @Test%0A    public void deserialization() throws IOException %7B%0A        // actually a test on CloudErrorDeserializer%0A%0A        final String errorBody = %22%7B%5C%22error%5C%22:%7B%5C%22code%5C%22:%5C%22ResourceGroupNotFound%5C%22,%5C%22message%5C%22:%5C%22Resource group 'rg-not-exist' could not be found.%5C%22%7D%7D%22;%0A%0A        AzureJacksonAdapter serializerAdapter = new AzureJacksonAdapter();%0A        CloudError cloudError = serializerAdapter.deserialize(errorBody, CloudError.class, SerializerEncoding.JSON);%0A        Assertions.assertEquals(%22ResourceGroupNotFound%22, cloudError.getCode());%0A    %7D%0A%7D%0A

add unit tests (#10315)