File target = new File(cwd, "target");
File platform = new File(target, "platform-file");
platform.mkdirs();
PlatformCapability pCap = new PlatformCapability();
pCap.define(PlatformCapability.NAME, "Foo");
pCap.define(PlatformCapability.VERSION, "1.0");
pCap.setClassPath(new String[]{cwd+File.separator+"target"+File.separator+"classes"+File.separator});
PlatformCapabilityWriter writer = new PlatformCapabilityWriter();
String fileName = writer.write(pCap, platform.getPath());
Assert.assertNotNull(fileName);
PlatformLoader platformLoader = new PlatformLoader();