* contents is correct.
*/
@Test
public void testGetServiceDescription() throws Exception {
final ServiceDescription serviceDescription = serviceDescriptionFactory
.getServiceDescription();
assertNotNull(serviceDescription);
assertEquals("Un-expected author (creator) information.",
"\"Easter Bunny <easter.bunny@bunny.net>\"", serviceDescription
.getAuthor());
final String expectedDescription = "Example description of a service "
+ "wrapping of a fantastic\n command line tool for migrating an "
+ "egg to eggnog.";
assertEquals("Un-expected description.", expectedDescription,
serviceDescription.getDescription());
final URI expectedFurtherInfoURI = new URI("http://example.org");
assertEquals("Un-expected text returned by getFurtherInfo().",
expectedFurtherInfoURI, serviceDescription.getFurtherInfo());
assertEquals("Un-expected identifier.", "-3995df4febea7decc4848e2864b7f863",
serviceDescription.getIdentifier());
assertEquals("Un-expected input formats.", getExpectedInputFormats(),
new HashSet<URI>(serviceDescription.getInputFormats()));
final String expectedInstructions = "Example: Please install the XYZ "
+ "tool on the system to\n make this service work.";
assertEquals("Un-expected instructions.", expectedInstructions,
serviceDescription.getInstructions());
final String expectedLogoURL = "http://www.planets-project.eu/graphics"
+ "/Planets_Logo.png";
assertEquals("Un-expected logo URI.", expectedLogoURL,
serviceDescription.getLogo().toString());
final String expctedServiceName = "Example: Eggnog migration service.";
assertEquals("Un-expected service name.", expctedServiceName,
serviceDescription.getName());
assertEquals("Un-expected service class name.", this.getClass()
.getCanonicalName(), serviceDescription.getClassname());
verifyParameters(serviceDescription.getParameters());
verifyToolDescription(serviceDescription.getTool());
assertEquals("Un-expected service version.", "3.141592653589793",
serviceDescription.getVersion());
assertEquals("Not testing a service, thus un-expected end-point URL.",
null, serviceDescription.getEndpoint());
verifyProperties(serviceDescription.getProperties());
assertEquals("Un-expected service provider information.",
SERVICE_PROVIDER, serviceDescription.getServiceProvider());
assertEquals("Un-expected interface type.",
"eu.planets_project.services.migrate.Migrate",
serviceDescription.getType());
verifyMigrationPaths(serviceDescription.getPaths());
}