generate -> mock