@Test
void getOrderedSet()
{

    Set<Double> result = this.tool.getOrderedSet();
    assertNotNull(result, "Returned null instead of a set");
    assertTrue(result.isEmpty(), "Returned set wasn't initially empty");
    // Check that the set is indeed ordered
    Random r = new Random();
    List<Double> values = new ArrayList<>(150);
    for (int i = 0; i < 100; ++i) {
        Double d = r.nextDouble();
        result.add(d);
        values.add(d);
    }
    Iterator<Double> valueIterator = values.iterator();
    for (Double e : result) {
        assertEquals(valueIterator.next(), e, "Set doesn't preserve the insertion order");
    }
}