*/
public void testTemplateMerging()
throws Exception
{
final String packagePath = this.getClass().getPackage().getName().replace('.', '/');
Property mergeMappings = new Property();
URL mergeMappingsUri = VelocityTemplateEngineTest.class.getResource(
"/" + packagePath + "/merge-mappings.xml");
assertNotNull(mergeMappingsUri);
mergeMappings.setName(NamespaceProperties.MERGE_MAPPINGS_URI);
mergeMappings.setValue(mergeMappingsUri.toString());
final String namespaceName = "test-namespace";
final Namespace namespace = new Namespace();
namespace.setName(namespaceName);
namespace.addProperty(mergeMappings);
Namespaces.instance().addNamespace(namespace);