NetworkMonitor extends ProfilerMonitor { @Override public void expand() { myProfilers.setStage(new NetworkProfilerStage(myProfilers)); } NetworkMonitor(@NotNull StudioProfilers profilers); @Override @NotNull String getName(); @Override TooltipModel buildTooltip(); @Override void exit(); @Override void enter(); @Override void expand(); AxisComponentModel getTrafficAxis(); NetworkUsage getNetworkUsage(); NetworkLegends getLegends(); NetworkLegends getTooltipLegends();  }
@Test public void testExpand() { assertSame(myProfilers.getStage().getClass(), NullMonitorStage.class); myMonitor.expand(); assertThat(myProfilers.getStage(), instanceOf(NetworkProfilerStage.class)); }