@Test
public void codeNavigationUnexpandsProfiler() {

  HttpData data = FAKE_HTTP_DATA.get(0);
  StackTrace stackTrace = new StackTrace(data);
  assertThat(stackTrace.getTrace()).isEqualTo(data.getTrace());
  assertThat(stackTrace.getCodeLocations()).hasSize(2);
  myStage.getStackTraceModel().setStackFrames(stackTrace.getTrace());
  assertThat(myStage.getProfilerMode()).isEqualTo(ProfilerMode.NORMAL);
  myStage.getTimeline().getSelectionRange().set(0, 10);
  assertThat(myStage.getProfilerMode()).isEqualTo(ProfilerMode.EXPANDED);
  myStage.getStackTraceModel().setSelectedIndex(0);
  assertThat(myStage.getProfilerMode()).isEqualTo(ProfilerMode.NORMAL);
}