{
ObjectToURI instance = ObjectToURI.getInstance();
CustomURIableObject custom = new CustomURIableObject();
Assert.assertEquals("/my-url", instance.resolveURI(custom));
instance.registerURIResolver(new URIResolver()
{
public boolean handles(Class<?> type)
{
return type == CustomURIableObject.class;
}