public void test02CreateNodeWithExistingUuid() {
try {
final PropertyMap props = new PropertyMap();
TestOne node = null;
final String uuid = StringUtils.replace(UUID.randomUUID().toString(), "-", "");
props.put(GraphObject.id, uuid);
try (final Tx tx = app.tx()) {
node = app.create(TestOne.class, props);
tx.success();
}
try (final Tx tx = app.tx()) {
assertTrue(node != null);
assertTrue(node instanceof TestOne);
assertEquals(node.getUuid(), uuid);
}
} catch (FrameworkException ex) {
logger.log(Level.SEVERE, ex.toString());