VirtualFile metadataByName = metadataLocation.findChild("some-data.xml");
assertNotNull(metadataByName);
//This is the same code as is called by AbstractDeploymentContext.getMetaDataFiles(String name, String suffix).
//The MetaDataMatchFilter is a copy of the one used there
List<VirtualFile> metaDataList = metadataLocation.getChildren(new MetaDataMatchFilter(null, "-data.xml"));
assertNotNull(metaDataList);
assertEquals("Wrong size", 1, metaDataList.size());
}