make classes final
Add MockNodeTypeManager to simulate existence of node types.