@Test
void getOrderedMap()
{

    Map<Double, Integer> result = this.tool.getOrderedMap();
    assertNotNull(result, "Returned null instead of a map");
    assertTrue(result.isEmpty(), "Returned map wasn't initially empty");
    // Check that the map is indeed ordered
    Random r = new Random();
    for (int i = 0; i < 100; ++i) {
        result.put(r.nextDouble(), i);
    }
    int i = 0;
    for (Map.Entry<Double, Integer> e : result.entrySet()) {
        assertEquals(i++, e.getValue().intValue(), "Map doesn't preserve the insertion order");
    }
}