Assert.assertNull(configuration);
}
@Test
public void testReferenceDeletion() throws ParseException, IOException {
XMLArtefact artefact = constructArtefact("nonexistingfile", "id"); //$NON-NLS-1$ //$NON-NLS-2$
ReferenceManager.getInstance().deleteReference(artefact);
XMLReference reference = createReference();
artefact = ReferenceManager.getInstance().generateArtefact(
"test/some.odt", reference); //$NON-NLS-1$
artefact.setContext("test/"); //$NON-NLS-1$
ReferenceManager.getInstance().deleteReference(artefact);
Document doc = loadFile(artefact.getReferenceFile());
Element root = doc.getRootElement();
Assert.assertEquals(0, root.getChildren().size());
artefact.getReferenceFile().delete();
}