@Test
public void setAndSelectCaptureShouldStopStreamingMode() throws IOException, ExecutionException, InterruptedException {

  // Capture has changed, keeps the same type of details
  CpuCapture capture = CpuProfilerTestUtils.getValidCapture();
  myStage.getTimeline().setIsPaused(false);
  myStage.getTimeline().setStreaming(true);
  myStage.setAndSelectCapture(capture);
  assertThat(myStage.getTimeline().isStreaming()).isFalse();
}