NetworkProfiler extends StudioProfiler { @Override public void startProfiling(Common.Session session) { myProfilers.getClient().getNetworkClient().startMonitoringApp(NetworkStartRequest.newBuilder().setSession(session).build()); } NetworkProfiler(@NotNull StudioProfilers profilers); @Override ProfilerMonitor newMonitor(); @Override void startProfiling(Common.Session session); @Override void stopProfiling(Common.Session session);  }
@Test public void startMonitoring() { myProfiler.startProfiling(SESSION_DATA); assertEquals(SESSION_DATA, myService.getSession()); }