@Test
public void testMap() throws Exception {

	Topic topic = _interestTermsJSONObjectMapper.map(
		_read("get-interests-term.json"));
	Assert.assertNotNull(topic);
	Assert.assertEquals(7, topic.getId());
	Assert.assertEquals(0.08653350323695352, topic.getId(), _DELTA);
	List<Topic.TopicTerm> topicTerms = topic.getTerms();
	Assert.assertEquals(topicTerms.toString(), 3, topicTerms.size());
	Topic.TopicTerm topicTerm = topicTerms.get(0);
	Assert.assertEquals("javascript", topicTerm.getKeyword());
	Assert.assertEquals(0.0945945945945946, topicTerm.getWeight(), _DELTA);
}