@Test
public void nestedAliasDefinitionsFilesCanBeUsedInResourcesDirectories() throws Exception {
// TODO: think of a way of doing this in a more BDD way
FileUtils.write(blade.assetLocation("resources").file("aliasDefinitions.xml"), "<aliasDefinitions xmlns='http://schema.caplin.com/CaplinTrader/aliasDefinitions'/>");
FileUtils.write(blade.assetLocation("resources").file("dir/aliasDefinitions.xml"), "<aliasDefinitions xmlns='http://schema.caplin.com/CaplinTrader/aliasDefinitions'/>");
AliasDefinitionsFile nestedBladeAliasDefinitionsFile = blade.assetLocation("resources").aliasDefinitionsFiles().get(1);
given(bladeAliasDefinitionsFile).hasAlias("appns.bs.b1.alias1", "Class1", "TheInterface")
.and(nestedBladeAliasDefinitionsFile).hasAlias("appns.bs.b1.alias2", "Class2", "TheInterface");
then(aspect).hasAlias("appns.bs.b1.alias1", "Class1", "TheInterface")
.and(aspect).hasAlias("appns.bs.b1.alias2", "Class2", "TheInterface");