/** * Run the void removeIndex(Query) method test. * * @throws Exception * @generatedBy CodePro at 12/16/14 3:36 PM */ @Test public void testRemoveIndex_1() throws Exception { LuceneUtil fixture = new LuceneUtil(); Query query = null; fixture.removeIndex(query); // An unexpected exception was thrown in user code while executing this test: // java.lang.NullPointerException // at org.apache.lucene.search.Query.mergeBooleanQueries(Query.java:182) }