List collection = new ArrayList();
collection.add( stilton );
Future futureAssert = session.asyncInsert( collection );
Future futureFireAllRules = session.asyncFireAllRules();
int i = 0;
while ( !futureFireAllRules.isDone() ) {
Thread.sleep( 100 );
if (i++ > 5) {
fail( "Future should have finished by now" );