@Test
public void referenceToTraceFilesAreSavedPerSession() {

  Assume.assumeFalse("Unified pipeline import cannot yet be tested because of dependencies on TransportService.getInstance().",
                     myUnifiedPipeline);
  myCpuProfiler = new CpuProfiler(myProfilers);
  File trace1 = CpuProfilerTestUtils.getTraceFile("valid_trace.trace");
  SessionsManager sessionsManager = myProfilers.getSessionsManager();
  sessionsManager.importSessionFromFile(trace1);
  Common.Session session1 = sessionsManager.getSelectedSession();
  File trace2 = CpuProfilerTestUtils.getTraceFile("basic.trace");
  sessionsManager.importSessionFromFile(trace2);
  Common.Session session2 = sessionsManager.getSelectedSession();
  assertThat(myCpuProfiler.getTraceFile(session1)).isEqualTo(trace1);
  assertThat(myCpuProfiler.getTraceFile(session2)).isEqualTo(trace2);
}