### Question:
GraphEntityMapper { public Node getNodeFromEntity(Object entity, Object key, GraphDatabaseService graphDb, EntityMetadata m, boolean isUpdate) { Node node = null; if (!isUpdate) { node = getOrCreateNodeWithUniqueFactory(entity, key, m, graphDb); } else { node = searchNode(key, m, graphDb, true); } if (node != null) { populateNodeProperties(entity, m, node); } return node; } GraphEntityMapper(Neo4JIndexManager indexer, final KunderaMetadata kunderaMetadata); Node getNodeFromEntity(Object entity, Object key, GraphDatabaseService graphDb, EntityMetadata m,
            boolean isUpdate); Node createProxyNode(Object sourceNodeId, Object targetNodeId, GraphDatabaseService graphDb,
            EntityMetadata sourceEntityMetadata, EntityMetadata targetEntityMetadata); Object getEntityFromNode(Node node, EntityMetadata m); Object getEntityFromRelationship(Relationship relationship, EntityMetadata topLevelEntityMetadata,
            Relation relation); Map<String, Object> createNodeProperties(Object entity, EntityMetadata m); void populateRelationshipProperties(EntityMetadata entityMetadata, EntityMetadata targetNodeMetadata,
            Relationship relationship, Object relationshipObj); Map<String, Object> createRelationshipProperties(EntityMetadata entityMetadata,
            EntityMetadata targetEntityMetadata, Object relationshipEntity); Object toNeo4JProperty(Object source); Object fromNeo4JObject(Object source, Field field); Node searchNode(Object key, EntityMetadata m, GraphDatabaseService graphDb, boolean skipProxy);  }### Answer:
@Test public void testGetNodeFromEntity() { Actor actor = new Actor(); actor.setId(1); actor.setName("Keenu Reeves"); Transaction tx = graphDb.beginTx(); Node node = mapper.getNodeFromEntity(actor, 1, graphDb, KunderaMetadataManager.getEntityMetadata(kunderaMetadata, Actor.class), false); Assert.assertNotNull(node); Assert.assertEquals(1, node.getProperty("ACTOR_ID")); Assert.assertEquals("Keenu Reeves", node.getProperty("ACTOR_NAME")); node.delete(); tx.success(); tx.finish(); }