@Override
    public int hashCode() {
        return uniqueKey.hashCode();
    }
@Test
    void testEqualsHashCode() {
        List<Pair<String>> list = new LinkedList<>();
        list.add(new Pair<>("test", 1));
        list.add(new Pair<>("test2", 1));
        Chooser<String, String> chooser = new Chooser<>("test", list);
        assertEquals("test".hashCode(), chooser.hashCode());
        assertEquals(chooser, chooser);
        assertNotEquals(null, chooser);
        assertNotEquals("test", chooser);
        Chooser<String, String> chooser1 = new Chooser<>(null, null);
        assertNotEquals(chooser, chooser1);
        assertNotEquals(chooser1, chooser);
        Chooser<String, String> chooser2 = new Chooser<>("test", Collections.emptyList());
        assertNotEquals(chooser, chooser2);
        assertNotEquals(chooser2, chooser);
        Chooser<String, String> chooser3 = new Chooser<>("test1", list);
        assertNotEquals(chooser, chooser3);
        Chooser<String, String> chooser4 = new Chooser<>("test", list);
        assertEquals(chooser, chooser4);
    }