WordPress page generation doesn’t work like that. And I don’t personally know how you’d simulate it.
I think there’s a more important question, though: why you are trying to do this? I am aware that some people have got the idea into their heads that it’s better from an SEO perspective to have a .html file extension at the end. If this is your reason, then you should know that it is a total myth supported by zero evidence.