* @throws JAXBException Should never happen.
*/
@Test
@DependsOnMethod("testReference")
public void testReferenceInEmptyObject() throws JAXBException {
final Citation citation = (Citation) XML.unmarshal(REFERENCED_XML);
assertEquals("Citation.title", "My data", citation.getTitle().toString());
/*
* Programmatic verification of the Series properties,
* which is the main object of interest in this test.
*/
final Series series = citation.getSeries();
assertInstanceOf("Citation.series", IdentifiedObject.class, series);
assertNull ("Citation.series.name", series.getName());
assertTrue ("Citation.series.isProxy", Proxy.isProxyClass(series.getClass()));
assertInstanceOf("Citation.series", NilObject.class, series);
assertEquals ("Series[{gco:uuid=“" + UUID_VALUE + "”}]", series.toString());