public void testRunCommandNameStringValueOptionsFuture() throws ExecutionException, InterruptedException {
new Fiber<Void>(new SuspendableRunnable() {
@Override
public void run() throws SuspendExecution, InterruptedException {
try {
Document res = addListenerCalledFlagSetter(mongoDb.runCommandAsync("ping", "1", null)).get();
assertEquals("1.0", res.get("ok").getValueAsString());
assertListenerCalled();
} catch (ExecutionException ex) {
fail(ex.getLocalizedMessage());
}
}