@Test
public void traceImportHandlerShouldBeRegistered() {

  Assume.assumeFalse("Unified pipeline import cannot yet be tested because of dependencies on TransportService.getInstance().",
                     myUnifiedPipeline);
  myCpuProfiler = new CpuProfiler(myProfilers);
  SessionsManager sessionsManager = myProfilers.getSessionsManager();
  File trace = CpuProfilerTestUtils.getTraceFile("valid_trace.trace");
  boolean sessionImportedSuccessfully = sessionsManager.importSessionFromFile(trace);
  assertThat(sessionImportedSuccessfully).isTrue();
  assertThat(myProfilerService.getLastImportedSessionType()).isEqualTo(Common.SessionMetaData.SessionType.CPU_CAPTURE);
}