@Test public void testGetUid() { mockServer .expect(requestTo("https://api.weibo.com/2/account/get_uid.json")) .andExpect(method(GET)) .andRespond(withResponse(jsonResource("account"), responseHeaders)); assertEquals(123, accountTemplate.getUid()); }