final PropertyKey key = AbstractNode.name;
final String name = "89w3hkl sdfghsdkljth";
props.put(key, name);
final AbstractNode node = createTestNode(TestOne.class, props);
Result result = null;
try (final Tx tx = app.tx()) {
result = app.nodeQuery(TestOne.class).andName(name).includeDeletedAndHidden().getResult();
assertTrue(result.size() == 1);
assertTrue(result.get(0).equals(node));
}
// Change name attribute and search again
final String name2 = "klppptzoehi gösoiu tzüw0e9hg";
try (final Tx tx = app.tx()) {
node.setProperty(key, name2);
tx.success();
}
try (final Tx tx = app.tx()) {