// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See License.txt in the project root.

package com.microsoft.alm.plugin.idea.common.services;

import com.microsoft.alm.plugin.exceptions.TeamServicesException;
import com.microsoft.alm.plugin.idea.IdeaAbstractTest;
import org.junit.Assert;
import org.junit.Test;

public class LocalizationServiceImplTest extends IdeaAbstractTest {

    @Test
    public void testGetLocalizedServerExceptionMessage() {
        LocalizationServiceImpl locService = new LocalizationServiceImpl();
        final Throwable t = new Throwable("Unknown key");
        final String message = locService.getExceptionMessage(t);
        Assert.assertEquals(message, "Unknown key");

        final TeamServicesException te = new TeamServicesException("KEY_VSO_AUTH_SESSION_EXPIRED", t);
        final String message1 = locService.getExceptionMessage(te);
        Assert.assertNotEquals(message1, "KEY_VSO_AUTH_SESSION_EXPIRED");
        Assert.assertEquals(message1, "Your previous Team Services session has expired. Sign in again.");
    }
}

@@ -1031,20 +1031,28 @@
 revious 
-Team
+Azure DevOps
  Service

Update LocalizationServiceImplTest.java