@Test
public void getLegends() {

  NetworkProfilerStage.NetworkStageLegends networkLegends = myStage.getLegends();
  assertThat(networkLegends.getRxLegend().getName()).isEqualTo("Receiving");
  assertThat(networkLegends.getTxLegend().getName()).isEqualTo("Sending");
  assertThat(networkLegends.getConnectionLegend().getName()).isEqualTo("Connections");
  assertThat(networkLegends.getRxLegend().getValue()).isEqualTo("2 B/s");
  assertThat(networkLegends.getTxLegend().getValue()).isEqualTo("1 B/s");
  assertThat(networkLegends.getConnectionLegend().getValue()).isEqualTo("4");
  assertThat(networkLegends.getLegends()).hasSize(3);
}