Element element = new Element(TAG_TIME);
element.setAttribute(VALUE, time);
List<Element> elements = new ArrayList<Element>();
elements.add(element);
Configuration configuration = new Configuration(elements);
ref.getIntegrator().setConfiguration(configuration);
ReferenceManager.getInstance().saveReference(ref, artefact);
ref = getReference(artefact);
configuration = ref.getIntegrator().getConfiguration();
Assert.assertNotNull(configuration);
Assert.assertEquals(1, configuration.getConfigurationElements().size());
String value = configuration.getConfigurationElements().get(0)
.getAttributeValue(VALUE);
Assert.assertEquals(time, value);
ref.getIntegrator().setConfiguration(null);
ReferenceManager.getInstance().saveReference(ref, artefact);