@Test
public void testExpand() {

  StudioProfilers profilers = new StudioProfilers(new ProfilerClient(myGrpcChannel.getName()), new FakeIdeProfilerServices(), myTimer);
  CpuMonitor monitor = new CpuMonitor(profilers);
  assertEquals(profilers.getStage().getClass(), NullMonitorStage.class);
  // One second must be enough for new devices (and processes) to be picked up
  myTimer.tick(FakeTimer.ONE_SECOND_IN_NS);
  monitor.expand();
  assertThat(profilers.getStage(), instanceOf(CpuProfilerStage.class));
}