### Question:
PropertyPathType extends AbstractScalarType { @Override public NodeId toNodeId(Object object, WriteContext writeContext) { return NodeId.key(object.toString()); }  @Override Object fromNodeId(NodeId nodeId, ReadContext context); @Override Object instantiate(PropertyTree propertyTree, Object value, ReadContext context); @Override void serialize(PropertyPath path, Object object, WriteContext context); @Override NodeId toNodeId(Object object, WriteContext writeContext);  }### Answer:
@Test public void toNodeId() { NodeId nodeId = type.toNodeId(path, null); assertThat(nodeId).isEqualTo(NodeId.key(path.toString())); }