public final void testHtmlMigration() {
try {
System.out.println(htmltestpdf.getCanonicalPath());
/**
* Testing the web services by calling it with
* a digital object instance containing a PDF file version 1.4,
* and expect the service to return a file containing HTML 4.0 text.
*/
final DigitalObject doInput =
new DigitalObject.Builder(
Content.byReference((htmltestpdf)
.toURI().toURL()))
.permanentUri(URI.create("http://example.com/test.pdf"))
.title("test.pdf")
.build();
System.out.println("Input " + doInput);
URI inputformatpdf = null;
URI outputformatHtmlUnicode = null;
inputformatpdf = new URI("info:pronom/fmt/18");
outputformatHtmlUnicode = new URI("info:pronom/fmt/99");
final MigrateResult mr = dom.migrate(doInput, inputformatpdf,
outputformatHtmlUnicode, null);
final DigitalObject doOutput = mr.getDigitalObject();
assertNotNull("Resulting digital object is null.", doOutput);
System.out.println("Output" + doOutput);