Modularity Criterion by Equality of Local Euler Factors