@Test
public void testGoLiveButtonWhenToggleStreaming() {

  JToggleButton liveButton = myView.getGoLiveButton();
  assertThat(liveButton.isEnabled()).isTrue();
  myProfilers.getTimeline().setStreaming(false);
  assertThat(liveButton.isSelected()).isFalse();
  assertThat(liveButton.getIcon()).isEqualTo(StudioIcons.Profiler.Toolbar.GOTO_LIVE);
  assertThat(liveButton.getToolTipText()).startsWith(StudioProfilersView.ATTACH_LIVE);
  myProfilers.getTimeline().setStreaming(true);
  assertThat(liveButton.isSelected()).isTrue();
  assertThat(liveButton.getIcon()).isEqualTo(StudioIcons.Profiler.Toolbar.PAUSE_LIVE);
  assertThat(liveButton.getToolTipText()).startsWith(StudioProfilersView.DETACH_LIVE);
}