public void testSnapshotRebuild() throws Exception {
RulesRepository repo = rulesRepository;
// get rid of other snapshot crap
Iterator< ? > pkit = repo.listModules();
while ( pkit.hasNext() ) {
ModuleItem pkg = (ModuleItem) pkit.next();
String[] snaps = repo.listModuleSnapshots( pkg.getName() );
for ( String snapName : snaps ) {
repo.removeModuleSnapshot( pkg.getName(),