FilemakerResultDocument extends FilemakerDocument<FMPXMLRESULT> { public FilemakerResultMapping toMapping() throws JAXBException { return new FilemakerResultMapping(this.toObject()); } FilemakerResultDocument(Document document); static boolean isReadable(Document doc); static FilemakerResultDocument newDocument(); static FilemakerResultDocument newDocument(FMPXMLRESULT xmlResult); FilemakerResultMapping toMapping(); @Override FMPXMLRESULT toObject();  }
@Test public void testToMapping() { try { FilemakerResultDocument doc = new FilemakerResultDocument(buildExampleDocument()); FilemakerResultMapping mapping = doc.toMapping(); Assert.assertNotNull( "Created mapping for transfer document.", mapping); } catch (Exception ex) { LOGGER.error("Test of FilemakerResultDocument.toMapping failed!"); LOGGER.error("> " + ex.getLocalizedMessage(), ex); Assert.fail("Test of FilemakerResultDocument.toMapping failed!"); } }