plugin/tst/software/aws/toolkits/eclipse/amazonq/chat/ChatCommunicationManagerTest.java [490:506]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            try (MockedStatic<ProgressNotificationUtils> progressNotificationUtilsMock = mockStatic(ProgressNotificationUtils.class)) {
                progressNotificationUtilsMock
                        .when(() -> ProgressNotificationUtils.getToken(any(ProgressParams.class)))
                        .thenReturn("token");
                when(chatPartialResultMap.getValue(any(String.class))).thenReturn("tabId");

                Either<WorkDoneProgressNotification, Object> either = mock(Either.class);
                when(either.getRight()).thenReturn(new Object());
                when(progressParams.getValue()).thenReturn(either);

                progressNotificationUtilsMock
                    .when(() -> ProgressNotificationUtils.getObject(any(ProgressParams.class), eq(String.class)))
                    .thenReturn("chatPartialResult");

                ChatResult chatResult = mock(ChatResult.class);

                when(jsonHandler.deserialize(any(String.class), eq(ChatResult.class))).thenReturn(chatResult);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



plugin/tst/software/aws/toolkits/eclipse/amazonq/chat/ChatCommunicationManagerTest.java [517:533]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            try (MockedStatic<ProgressNotificationUtils> progressNotificationUtilsMock = mockStatic(ProgressNotificationUtils.class)) {
                progressNotificationUtilsMock
                        .when(() -> ProgressNotificationUtils.getToken(any(ProgressParams.class)))
                        .thenReturn("token");
                when(chatPartialResultMap.getValue(any(String.class))).thenReturn("tabId");

                Either<WorkDoneProgressNotification, Object> either = mock(Either.class);
                when(either.getRight()).thenReturn(new Object());
                when(progressParams.getValue()).thenReturn(either);

                progressNotificationUtilsMock
                    .when(() -> ProgressNotificationUtils.getObject(any(ProgressParams.class), eq(String.class)))
                    .thenReturn("chatPartialResult");

                ChatResult chatResult = mock(ChatResult.class);

                when(jsonHandler.deserialize(any(String.class), eq(ChatResult.class))).thenReturn(chatResult);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



