@Test
public void testLoadFormAsset() throws Exception {
Repository repository = new VFSRepository(producer.getIoService());
((VFSRepository)repository).setDescriptor(descriptor);
profile.setRepository(repository);
AssetBuilder builder = AssetBuilderFactory.getAssetBuilder(Asset.AssetType.Text);
builder.content("bpmn2 content")
.type("bpmn2")
.name("testprocess")
.location("/defaultPackage");
String uniqueId = repository.createAsset(builder.getAsset());
AssetBuilder builderForm = AssetBuilderFactory.getAssetBuilder(Asset.AssetType.Text);
builderForm.content("this is simple task content")
.type("ftl")
.name("evaluate-taskform")
.location("/defaultPackage");
String uniqueIdForm = repository.createAsset(builderForm.getAsset());
// setup parameters
Map<String, String> params = new HashMap<String, String>();
params.put("uuid", uniqueId);
params.put("action", "load");