api.delete("packages/testRestDelete/asset1.drl");
List l = RulesRepositoryTest.iteratorToList(pkg.listAssetsByFormat(new String[] {"drl"}));
assertEquals(0, l.size());
l = RulesRepositoryTest.iteratorToList(pkg.listArchivedAssets());
assertEquals(1, l.size());
//now test it back from the dead
api.post("packages/testRestDelete/asset1.drl", new ByteArrayInputStream("123".getBytes()), "new comment");