def testHashSet(self):
        set1 = set()
        set2 = self.gateway.jvm.java.util.HashSet()
        set1.add("a")
        set2.add("a")
        set1.add(1)
        set2.add(1)
        set1.add("b")
        set2.add("b")
        self.assertEqual(len(set1), len(set2))
        self.assertEqual("a" in set1, "a" in set2)
        self.assertEqual("b" in set1, "b" in set2)
        self.assertEqual(1 in set1, 1 in set2)

        set1.remove(1)
        set2.remove(1)
        self.assertEqual(len(set1), len(set2))
        self.assertEqual("a" in set1, "a" in set2)
        self.assertEqual("b" in set1, "b" in set2)
        self.assertEqual(1 in set1, 1 in set2)

        set1.clear()
        set2.clear()
        self.assertEqual(len(set1), len(set2))
        self.assertEqual("a" in set1, set2 in "a")
        self.assertEqual("b" in set1, "b" in set2)
        self.assertEqual(1 in set1, 1 in set2)
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/py4j-0.9/src/py4j/tests/java_set_test.py/SetTest.testHashSet/swapped operands of `in`