def test_instance_of(self):
        self.map.put("key-1", True)
        self.map.put("key-2", 5)
        self.map.put("key-3", "str")

        predicate = instance_of("java.lang.Boolean")

        self.assertCountEqual(self.map.key_set(predicate), ["key-1"])
    predicate.and_(
        predicate.sql(_sql_string),
        predicate.equal(_sql_string, REFERENCE_OBJECTS["Integer"]),
        predicate.not_equal(_sql_string, REFERENCE_OBJECTS["Integer"]),
        predicate.greater(_sql_string, REFERENCE_OBJECTS["Integer"]),
        predicate.greater_or_equal(_sql_string, REFERENCE_OBJECTS["Integer"])),
    "OrPredicate":
    predicate.or_(
        predicate.sql(_sql_string),
        predicate.equal(_sql_string, REFERENCE_OBJECTS["Integer"]),
        predicate.not_equal(_sql_string, REFERENCE_OBJECTS["Integer"]),
        predicate.greater(_sql_string, REFERENCE_OBJECTS["Integer"]),
        predicate.greater_or_equal(_sql_string, REFERENCE_OBJECTS["Integer"])),
    "InstanceOfPredicate":
    predicate.instance_of(
        "com.hazelcast.nio.serialization.compatibility.CustomStreamSerializable"
    )
})

_SKIP_ON_SERIALIZE = {
    "Character",
    "Float",
    "boolean[]",
    "char[]",
    "double[]",
    "short[]",
    "float[]",
    "int[]",
    "long[]",
    "String[]",
    "Class",
 def test_instance_of(self):
     predicate = instance_of("java.lang.Boolean")
     self.assertEqual(
         str(predicate),
         "InstanceOfPredicate(class_name='java.lang.Boolean')")