Refactored 'Node is published' unit test to leverage a mocked annotated class discovery as a proof-of-concept.