public void getBadges() {
mockServer.expect(requestTo("https://api.foursquare.com/v2/users/self/badges?oauth_token=ACCESS_TOKEN&v=20110609"))
.andExpect(method(GET))
.andRespond(withResponse(new ClassPathResource("testdata/badges.json", getClass()), responseHeaders));
BadgesResponse response = foursquare.userOperations().getBadges();
assertEquals("#4sqDay 2010", response.getBadges().get("4bc8d78d675403bb8f466094").getName());
mockServer.verify();
}