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"}));
assertEquals(1, l.size());
try {
api.post("packages/testRestDelete/asset1.drl", new ByteArrayInputStream("123".getBytes()), "new comment");
fail("this should be rejected as its not archived.");