Harry Potter, Hermoine and Ron end up in a forced "Vanvaas" similar to Laxman, Sita and Ram. Jealously, loyalty, doubts come into play very similar to issues explored in Ramayana. Dumbledore alternates between being Bheesma and Krishna.
Similar to the themes in Ramayana and Mahabharata, almost nobody is perfect. Sita and Krishna were the perfect characters in Ramayana and Mahabharata; Hermoine comes close to perfection in the Harry Potter series.
It is good to see these similarities. When kids eventually migrate to knowing Ramayana and Mahabharata later, they will appreciate all the moral dilemnas in these excellent texts.