@Test
public void getDetailedNetworkUsage() {

  List<RangedContinuousSeries> series = myStage.getDetailedNetworkUsage().getSeries();
  assertThat(series).hasSize(3);
  RangedContinuousSeries receiving = series.get(0);
  RangedContinuousSeries sending = series.get(1);
  RangedContinuousSeries connections = series.get(2);
  assertThat(receiving.getName()).isEqualTo("Receiving");
  assertThat(sending.getName()).isEqualTo("Sending");
  assertThat(connections.getName()).isEqualTo("Connections");
  assertThat(receiving.getSeries()).hasSize(1);
  assertThat(receiving.getSeries().get(0).x).isEqualTo(0);
  assertThat(receiving.getSeries().get(0).value.longValue()).isEqualTo(2);
  assertThat(sending.getSeries()).hasSize(1);
  assertThat(sending.getSeries().get(0).x).isEqualTo(0);
  assertThat(sending.getSeries().get(0).value.longValue()).isEqualTo(1);
  assertThat(connections.getSeries()).hasSize(1);
  assertThat(connections.getSeries().get(0).x).isEqualTo(0);
  assertThat(connections.getSeries().get(0).value.longValue()).isEqualTo(4);
}