After being cast to play Anastasia Steele in Fifty Shades of Grey, Dakota Johnson was photographed in her underwear on the set of Cymbeline in Ditmas Park, Brooklyn on Sept. 4. Credit: Splash News Online

Sneak peek? Before Dakota Johnson tackles the explicit, BDSM scenes in the film adaptation of E.L. James' erotic novel Fifty Shades of Grey, it looks like she's getting a little practice while working on her current film Cymbeline. The 23-year-old actress was photographed filming a scene in her underwear in Ditmas Park, Brooklyn on Wednesday, Sept. 4.

Johnson was spotted climbing through a window on set wearing pink polka-dot underwear with lace trim, a gray tank top and bright blue lace bra underneath. The blonde beauty showed off her trim body while filming the modern-day adaptation of William Shakespeare's play. The Michael Almereyda-directed film also stars Ethan Hawke, Milla Jovovich, Penn Badgley and Ed Harris.

This isn't the first time Johnson has stripped down onscreen. The actress, daughter of Melanie Griffith and Don Johnson, shared sex scenes with Jason Segel in 2012's The Five-Year Engagement, and showed her underwear in front of Justin Timberlake (playing Sean Parker) in 2010's The Social Network.

On Monday, Sept. 2, James announced that Johnson would play college graduate Anastasia Steele opposite Charlie Hunnam as billionaire businessman Christian Grey in the upcoming movie based on her best-selling trilogy. The casting decision of the relatively unknown stars was met with widespread outrage by Fifty Shades of Grey fans. A petition was created on demanding that Matt Bomer and Alexis Bledel replace Johnson and Hunnam. As of Wednesday afternoon, the petition had 26,461 supporters.