}).start().join();
}
@Test
public void testExplainFindQueryFuture() throws ExecutionException, InterruptedException {
new Fiber<Void>(new SuspendableRunnable() {
@Override
public void run() throws SuspendExecution, InterruptedException {
try {
Document explain = addListenerCalledFlagSetter(mongoColl.explainAsync(Find.builder().query(FIND_DOCUMENT).build())).get();
assertNotNull(explain.get(FIELD_AGGREGATE_RESULT_CURSOR_NAME));