@Test
public void getLegends() {

  NetworkMonitor.NetworkLegends networkLegends = myMonitor.getLegends();
  assertEquals("Receiving", networkLegends.getRxLegend().getName());
  assertEquals("2 B/s", networkLegends.getRxLegend().getValue());
  assertEquals("Sending", networkLegends.getTxLegend().getName());
  assertEquals("1 B/s", networkLegends.getTxLegend().getValue());
  List<Legend> legends = networkLegends.getLegends();
  assertEquals(2, legends.size());
  assertEquals("Sending", legends.get(0).getName());
  assertEquals("Receiving", legends.get(1).getName());
}