@Test
public void testDetailsFeatureTracking() {

  FakeFeatureTracker tracker = (FakeFeatureTracker)myStage.getStudioProfilers().getIdeServices().getFeatureTracker();
  assertThat(tracker.getLastCaptureDetailsType()).isNull();
  myModel.setDetails(CaptureDetails.Type.CALL_CHART);
  assertThat(tracker.getLastCaptureDetailsType()).isEqualTo(CaptureDetails.Type.CALL_CHART);
  myModel.setDetails(CaptureDetails.Type.FLAME_CHART);
  assertThat(tracker.getLastCaptureDetailsType()).isEqualTo(CaptureDetails.Type.FLAME_CHART);
  myModel.setDetails(CaptureDetails.Type.TOP_DOWN);
  assertThat(tracker.getLastCaptureDetailsType()).isEqualTo(CaptureDetails.Type.TOP_DOWN);
  myModel.setDetails(CaptureDetails.Type.BOTTOM_UP);
  assertThat(tracker.getLastCaptureDetailsType()).isEqualTo(CaptureDetails.Type.BOTTOM_UP);
}