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