The track playing during the Boggart lesson (wardrobe scene) is "Double Trouble" by The Brian Setzer Orchestra.
It's a swing/jive cover of the old blues standard, arranged for the film by John Williams. The upbeat tempo contrasts with the scary Boggart transformations, underscoring the lesson's theme: fear made ridiculous.