Enabling log using log4j
Simulate adding an entity to a resource collection