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