@SuppressWarnings("javadoc")
public class NodeExistsCommandMongoTest extends BaseMongoTest {
@Test
public void simple() throws Exception {
SimpleNodeScenario scenario = new SimpleNodeScenario(mongoConnection);
String revisionId = scenario.create();
NodeExistsCommandMongo command = new NodeExistsCommandMongo(
mongoConnection, "/a", revisionId);
boolean exists = command.execute();
assertTrue(exists);
command = new NodeExistsCommandMongo(mongoConnection, "/a/b",
revisionId);
exists = command.execute();
assertTrue(exists);
revisionId = scenario.delete_A();
command = new NodeExistsCommandMongo(mongoConnection, "/a", revisionId);
exists = command.execute();
assertFalse(exists);