public class RankedEntityJsonDigesterTest extends TestCase {
public void testParseAlchemyJson() {
try {
JsonTextRankedEntityExtractionDigester digester = new JsonTextRankedEntityExtractionDigester();
EntitiesResults results = (EntitiesResults) digester.parseAlchemyXML(this.getClass()
.getResourceAsStream("/jsonTextRankedEntityResult.js"));
assertTrue(results != null);
assertTrue(results.getLanguage() != null);
assertTrue(results.getStatus() != null);
assertTrue(results.getUrl() != null);