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();
PlatformCapabilityConfig[] pCapConfigs = platformLoader.parsePlatform(platform.getPath());
Assert.assertNotNull(pCapConfigs);
Assert.assertEquals(1, pCapConfigs.length);