MULE-8101: Moving HTTPS server logic to abstract class and refactoring tests that need it.