What if the h1 b petition is rejected after lottery?

MY H1B petition is RFE Since Jan18-2017. Just want to know:

What if the h1 b petition is rejected now? Will the VISA filing fee be returned? Will there by any partial fee deduction or full fee will not be returned as the lottery was picked.

It will not be refunded. It will be refunded only if your application is not picked in the lottery.