@Test
public void testAverageFactory() {

    RouterLevelHistogram rlh = RouterLevelHistogram.makeAverageHistogram(histogram);
    // The RouterLevelHistogram has the same number of accesspoints:
    assertEquals(3, rlh.size());
    // And these are the calculated average-strength-values for each of them:
    assertEquals(-22.7f, rlh.get("00:01:02:03:04:05"), 0.00001);
    assertEquals(-42f, rlh.get("a0:b0:c0:d0:e0:f0"), 0.00001);
    assertEquals(-38.3f, rlh.get("01:23:45:67:89:ab"), 0.00001);
}