This page contains tests for setting a shadows bookmark through the XML-RPC interface. To see them, take a look at the source.