思う壺にはまる(おもうつぼにはまる)

Japanese vocabulary

Meaning: to turn out just as one wished; to come up to one's expectations; to play into the hands (of)

See it used in real works