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");
AssetItem ass = pkg.loadAsset("asset1");
assertEquals("123", ass.getContent());
assertEquals("new comment", ass.getCheckinComment());
assertFalse(ass.isArchived());
l = RulesRepositoryTest.iteratorToList(pkg.listAssetsByFormat(new String[] {"drl"}));