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());
assertEquals("drl", a.getFormat());
assertEquals("abc", a.getContent());
assertEquals("a comment", a.getCheckinComment());