A man has been arrested after investigators say he pretended to be a San Joaquin County sheriff`s deputy to search two massage businesses.