def METHOD_NAME(query):
    """
    Test internal _prepare_object method.
    """
    t = Transformer()
    sink = RdfSink(t, os.path.join(TARGET_DIR, "test_graph3.nt"))
    o = sink._prepare_object(query[0], query[1], query[2])
    assert type(o).__name__ == query[3]
    if query[4]:
        assert o.datatype == query[4]