@Test
public void callStackViewHasProperValueFromData() {

  AspectObserver observer = new AspectObserver();
  final int[] stackFramesChangedCount = {0};
  StackTraceView stackTraceView = findTab(myView, CallStackTabContent.class).getStackTraceView();
  stackTraceView.getModel().addDependency(observer)
    .onChange(StackTraceModel.Aspect.STACK_FRAMES, () -> stackFramesChangedCount[0]++);
  assertThat(stackFramesChangedCount[0]).isEqualTo(0);
  assertThat(stackTraceView.getModel().getCodeLocations()).hasSize(0);
  myView.setHttpData(DEFAULT_DATA);
  assertThat(stackFramesChangedCount[0]).isEqualTo(1);
  StackTrace stackTrace = new StackTrace(DEFAULT_DATA);
  assertThat(stackTraceView.getModel().getCodeLocations()).isEqualTo(stackTrace.getCodeLocations());
}