[Android] Add test case for getUrl().

This patch is to add test case for getUrl().
Open a url, get the url on ui thread, compare it with the expected.