@Test
public void testEndToEndExportOfOneProfile() throws Exception {
// create a new profile and run it
ProfileInstance testProfile = profileContextLocator.getProfileInstance("test");
testProfile.setProfileSpec(new ProfileSpec());
File profileHomeDir = new File(config.getProfilesDir(), "test");
// Delete any renmants...
FileUtils.deleteDirectory(profileHomeDir);
final File sigFile = new File("sig_files/DROID_SignatureFile_V26.xml");
FileUtils.copyFileToDirectory(sigFile, profileHomeDir);
testProfile.setSignatureFileName("DROID_SignatureFile_V26.xml");
String path = "C:/Documents and Settings/rflitcroft/My Documents/matts_disk";
//String path = "src/test/resources";
testProfile.addResource(new DirectoryProfileResource(new File(path), true));
ProfileInstanceManager profileInstance = profileContextLocator.openProfileInstanceManager(testProfile);
//profileInstance.initProfile(sigFile.toURI());
profileInstance.start().get();