ElementFactory factory = GstElementFactoryAPI.GSTELEMENTFACTORY_API.gst_element_factory_find("videotestsrc");
p = GstElementFactoryAPI.GSTELEMENTFACTORY_API.ptr_gst_element_factory_create(factory, "videotestsrc");
}
GValue v = new GValue();
api.g_value_init(v, GType.OBJECT);
GValueTestAPI.API.g_value_set_object(v.getPointer(), p);
Object obj = v.getValue();
assertTrue("type mismatch", obj instanceof Element);
}