// SPDX-License-Identifier: GPL-3.0-or-later use molotov_core::jni::objects::JniObjectRegistry; #[test] fn test_jni_string_allocation_and_read() { let mut registry = JniObjectRegistry::new(); let str_handle = registry.alloc_string("hello_roblox"); assert_eq!(registry.get_string(str_handle), Some("hello_roblox")); registry.release_object(str_handle); assert_eq!(registry.get_string(str_handle), None); }