package com.microsoft.graph.http;

import static org.junit.Assert.*;

import java.util.ArrayList;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class GraphFatalServiceExceptionTests {

	@Test
	public void testGraphFatalServiceException() {
        GraphFatalServiceException exception = new GraphFatalServiceException(null,null,new ArrayList<String>(),null,401,"Unauthenticated",new ArrayList<String>(),null);
        String expectedMessage = "[This is an unexpected error from Graph, please report this at https://github.com/microsoftgraph/msgraph-sdk-java/issues]\n" +
                "null null\n" +
                "\n" +
                "\n" +
                "401 : Unauthenticated\n" +
                "[...]\n" +
                "\n" +
                "[Some information was truncated for brevity, enable debug logging for more details]";
        String message = exception.getMessage();
        assertEquals(expectedMessage, message);
    }

}

@@ -476,131 +476,55 @@
  = %22
-%5BThis is an unexpected error from Graph, please report this at https://github.com/microsoftgraph/msgraph-sdk-java/issues%5D%5Cn
+Unexpected exception returned from the service.
 %22 +%0A

Update exception test