results.put(MDDiscoveryLogic.KEY_TITLE, "title");
results.put(MDDiscoveryLogic.KEY_AUTHOR, "author");
results.put(MDDiscoveryLogic.KEY_DESCRIPTION, "description");
results.put(MDDiscoveryLogic.KEY_INBOUND_LINKS, new Integer(1));
FeedMetaDataHolder holder = new FeedMetaDataHolder();
MDDiscoveryRequest request = new MDDiscoveryRequest(null, holder);
MDDiscoveryLogic.processServiceResults(results, request);
assertTrue("Discovery has finished with VALID status.",
request.isServiceDiscoveryComplete());
assertFalse("Information is valid.", holder.isInvalid().booleanValue());
assertEquals("http://data", holder.getXmlURL().toString());
assertEquals("http://html", holder.getHtmlURL().toString());
assertEquals("title", holder.getTitle());
assertEquals("description", holder.getDescription());
assertEquals("author", holder.getAuthor());
assertEquals(new Integer(1), holder.getInboundLinks());
}