public void testSaveAndLoadConfig() throws JAXBException, IOException {
final JAXBContext jaxbContext = JAXBContext
.newInstance(FedizConfig.class);
FederationConfigurator configurator = new FederationConfigurator();
FedizConfig configOut = createConfiguration();
StringWriter writer = new StringWriter();
jaxbContext.createMarshaller().marshal(configOut, writer);
StringReader reader = new StringReader(writer.toString());
configurator.loadConfig(reader);