NetworkProfiler extends StudioProfiler { @Override public ProfilerMonitor newMonitor() { return new NetworkMonitor(myProfilers); } NetworkProfiler(@NotNull StudioProfilers profilers); @Override ProfilerMonitor newMonitor(); @Override void startProfiling(Common.Session session); @Override void stopProfiling(Common.Session session);  }
@Test public void newMonitor() { ProfilerMonitor monitor = myProfiler.newMonitor(); assertNotNull(monitor); assertTrue(monitor instanceof NetworkMonitor); }