public T item() {
        return item;
    }
@Test
    void testItem() {
        String item = "aa";
        double weight = 1.0;
        Pair<String> pair = new Pair<>(item, weight);
        assertEquals(weight, pair.weight(), 0.01);
        assertEquals(item, pair.item());
    }