source: class GowallaTemplateTest {
  
  	private GowallaTemplate gowalla;
  	private MockRestServiceServer mockServer;
  	private HttpHeaders responseHeaders;
  
  	@Test
  	public void getTopCheckins() {
  
target: 		mockServer.expect(requestTo("https://api.gowalla.com/users/habuma/top_spots")).andExpect(method(GET))
  				.andExpect(header("Authorization", "Token token=\"ACCESS_TOKEN\""))
  				.andRespond(withResponse(new ClassPathResource("top_spots.json", getClass()), responseHeaders));
  
  		List<Checkin> checkins = gowalla.getTopCheckins("habuma");
  		assertEquals(3, checkins.size());
  		assertEquals("Burrito Shack", checkins.get(0).getName());
  		assertEquals(100, checkins.get(0).getCount());
  		assertEquals("Chicken Hut", checkins.get(1).getName());
  		assertEquals(25, checkins.get(1).getCount());
  		assertEquals("Burger Bell", checkins.get(2).getName());
  		assertEquals(3, checkins.get(2).getCount());
  	}
  
  }