public void testGetNodeWithMissingLeafNode() throws Exception {
Node expected = NodeBuilder
.build(String
.format("{ \"/#%1$s\" : { \"a#%2$s\" : { \"int\" : 1 , \"double\" : 0.123 , \"b#%1$s\" : { \"string\" : \"foo\" , \"e#%2$s\" : { \"array\" : [ 123, null, 123.456, \"for:bar\", true ] } } , \"c#%1$s\" : { \"bool\" : true }, \"d#%2$s\" : { \"null\" : null } } } }",
"1", "2"));
MongoConnection mockConnection = createMissingNodeScenario(expected, "/a/c");
GetNodesCommandMongo command = new GetNodesCommandMongo(mockConnection, "/", "2", -1);
Node actual = command.execute();
NodeAssert.assertDeepEquals(expected, actual);