While it is quite straightforward to use the Chainlink VRF V2 oracle, the Request & Receive Data cycle is a bit less easy to use on a local network (e.g. a hardhat node for testing) when there is no Chainlink node listening to the calls.
This articles aims at giving a step-by-step guide to a working solution for unit-testing a contract using the new Chainlink VRF oracle (Chainlink actually provides an example for the VRF V1 version, see the hardhat starter kit)