A novel approach for the investigation of mesoscopic contact mechanics