Aside from junit tests incorporated in every build and selenium tests for components, we want to explore the use of server-side (sling-based) tests for integration testing. There will be cases where we need to test components that use references to classes such as SlingRepository or ResourceResolverFactory classes without using mock objects. How should we go about it? What is the best way to implement? We would want to create separate project that: executes all the test cases , create pages or nodes to test certain functionalities and then be able to delete created content nodes after all tests have been executed (specially if running in the production environment).