@Test
  public void testGetUserProfileByDomainName() {
    mockServer
        .expect(requestTo("https://api.weibo.com/2/users/domain_show.json?domain=domain"))
        .andExpect(method(GET))
        .andRespond(withResponse(jsonResource("profile"), responseHeaders));

    WeiboProfile profile = userTemplate.getUserProfileByDomainName("domain");
    verifyWeiboProfile(profile);
  }
  @Test
  public void testGetUserProfileByScreenName() {
    String screenName = "Cirrus_Test1";
    mockServer
        .expect(requestTo("https://api.weibo.com/2/users/show.json?screen_name=" + screenName))
        .andExpect(method(GET))
        .andRespond(withResponse(jsonResource("profile"), responseHeaders));

    WeiboProfile profile = userTemplate.getUserProfileByScreenName(screenName);
    verifyWeiboProfile(profile);
  }
  @Test
  public void testGetUserProfileById() {
    long uid = 123L;
    mockServer
        .expect(requestTo("https://api.weibo.com/2/users/show.json?uid=" + uid))
        .andExpect(method(GET))
        .andRespond(withResponse(jsonResource("profile"), responseHeaders));

    WeiboProfile profile = userTemplate.getUserProfileById(uid);
    verifyWeiboProfile(profile);
  }