Notice of the filing of the petition and of the time and place of the hearing thereof shall be given to such persons, if any, as the court shall designate by its order. Such order shall specify how such notice shall be given and may be by publication, posting, personal service or otherwise as the court shall direct. Upon the hearing of the petition proof shall be submitted to the court that notice has been given as prescribed in such order.