@Test
public void captureNavigationEnabledInSessionsWithTraces() throws IOException, InterruptedException {

  // There are no traces/captures in the current session. We can't navigate anywhere.
  assertThat(myStage.getTraceIdsIterator().hasNext()).isFalse();
  assertThat(myStage.getTraceIdsIterator().hasPrevious()).isFalse();
  CpuProfilerTestUtils.captureSuccessfully(myStage, myCpuService, myTransportService, CpuProfilerTestUtils.readValidTrace());
  myStage = new CpuProfilerStage(myStage.getStudioProfilers());
  // Verify we can now navigate. Note we didn't have to parse any captures. The model should fetch all the trace info when it's created.
  assertThat(myStage.getTraceIdsIterator().hasNext()).isTrue();
  assertThat(myStage.getTraceIdsIterator().hasPrevious()).isTrue();
}