### Question:
GraphEntityMapper { public Map<String, Object> createNodeProperties(Object entity, EntityMetadata m) { Map<String, Object> props = new HashMap<String, Object>(); MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata().getMetamodel( m.getPersistenceUnit()); EntityType entityType = metaModel.entity(m.getEntityClazz()); Set<Attribute> attributes = entityType.getSingularAttributes(); for (Attribute attribute : attributes) { Field field = (Field) attribute.getJavaMember(); if (!attribute.isCollection() && !attribute.isAssociation()) { String columnName = ((AbstractAttribute) attribute).getJPAColumnName(); Object value = PropertyAccessorHelper.getObject(entity, field); if (value != null) { props.put(columnName, toNeo4JProperty(value)); } } } return props; } 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 testCreateNodeProperties() { Actor actor = new Actor(); actor.setId(1); actor.setName("Keenu Reeves"); EntityMetadata m = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, Actor.class); Map<String, Object> props = mapper.createNodeProperties(actor, m); Assert.assertNotNull(props); Assert.assertFalse(props.isEmpty()); Assert.assertEquals(1, props.get("ACTOR_ID")); Assert.assertEquals("Keenu Reeves", props.get("ACTOR_NAME")); }