ModuleItem pkg = repo.createModule("testRestPost", "", ModuleItem.MODULE_FORMAT);
pkg.updateStringProperty("This is some header", ModuleItem.HEADER_PROPERTY_NAME);
repo.save();
RestAPI api = new RestAPI(repo);
api.setAssetValidator(new AssetValidator());
ByteArrayInputStream in = new ByteArrayInputStream("abc".getBytes());
api.post("/packages/testRestPost/asset1.drl", in, "a comment");
AssetItem a = pkg.loadAsset("asset1");
assertFalse(a.isBinary());