Move mockClassWithMethods method to WikiaBaseTest