public void ProperDeserialization()
{
DefaultConfigurationStore store = new DefaultConfigurationStore();
XmlInterpreter interpreter = new XmlInterpreter(new ConfigResource());
interpreter.ProcessResource(interpreter.Source, store);
Assert.AreEqual(2, store.GetFacilities().Length);
Assert.AreEqual(3, store.GetComponents().Length);
IConfiguration config = store.GetFacilityConfiguration("testidengine");
IConfiguration childItem = config.Children["item"];
Assert.IsNotNull(childItem);
Assert.AreEqual("value", childItem.Value);
config = store.GetFacilityConfiguration("testidengine2");
Assert.IsNotNull(config);
Assert.AreEqual("value within CDATA section", config.Value);
config = store.GetComponentConfiguration("testidcomponent1");
childItem = config.Children["item"];
Assert.IsNotNull(childItem);
Assert.AreEqual("value1", childItem.Value);
config = store.GetComponentConfiguration("testidcomponent2");
childItem = config.Children["item"];
Assert.IsNotNull(childItem);
Assert.AreEqual("value2", childItem.Value);
}