constructor should be detected as a target method.