MongoQueryEngine extends SingleProjectQueryEngine<MongoClient> { @Override protected void asyncExecute(String queryId, Project project, Connection connection, IResultHandler iResultHandler) throws ConnectorException { throw new UnsupportedException("The method asyncExecute is not supported"); } private  MongoQueryEngine(MongoConnectionHandler connectionHandler); static MongoQueryEngine getInstance(MongoConnectionHandler connectionHandler); @Override @TimerJ QueryResult execute(Project project, Connection<MongoClient> connection); @Override void stop(String queryId);  }
@Test(expected = UnsupportedException.class) public void asyncExecuteTest() throws ConnectorException { mongoQueryEngine.asyncExecute("", Mockito.mock(Project.class), null,Mockito.mock(IResultHandler.class)); }