public void testAddAfterStop() throws Exception {
  deleteAllDocs();
  send("stopIndex");
  try {
    send("addDocument","{fields: {}}");
    fail();
  }
 catch (  IOException ioe) {
  }
  send("startIndex");
}

public void testAddAfterStop ( ) throws Exception { deleteAllDocs ( ) ; send ( "stopIndex" ) ; try { send ( "addDocument" , "{fields: {}}" ) ; fail ( ) ; } catch ( IOException ioe ) { } send ( "startIndex" ) ; }
make sure you get an error if you try to adddocument after index is stopped
