### Question:
StraceDiagnosticManager { public static StraceDiagnosticManager getInstance() { if (instance == null) { synchronized (StraceDiagnosticManager.class) { if (instance == null) instance = new StraceDiagnosticManager(); } } return instance; } private  StraceDiagnosticManager(); static StraceDiagnosticManager getInstance(); List<MicroserviceStraceData> getMonitoringMicroservices(); void updateMonitoringMicroservices(JsonObject diagnosticData); void enableMicroserviceStraceDiagnostics(String microserviceUuid); void disableMicroserviceStraceDiagnostics(String microserviceUuid);  }### Answer:
@Test public void testGetInstanceIsSameAsMock() { straceDiagnosticManager = mock(StraceDiagnosticManager.class); PowerMockito.mockStatic(StraceDiagnosticManager.class); when(straceDiagnosticManager.getInstance()).thenReturn(straceDiagnosticManager); assertSame(straceDiagnosticManager, StraceDiagnosticManager.getInstance()); }