Preheat the oven to 375˚F (190°C) and have a rimmed baking sheet ready.
Roll your pastry out on parchment paper until it’s approximately 12-by-12 inches (30-by-30 cm).
Spread the pastry cream over the entire surface of the pastry.
Sprinkle the chocolate over one half of the pastry and fold the other half of the pastry to cover it.
With the open end of the pastry facing you (you’ll have a rectangle of 12-by-6 inches [30-by-15 cm]), cut strips of the pastry approximately 2 inches (5 cm) wide.
Lift the parchment onto a rimmed baking sheet and separate the pastry strips slightly.
Twist the pastry strips in one direction at one end and in the other direction at the other end to make a twist. Make two twists at each end. Some of the chocolate might fall out–but just press it back into the pastry cream. Make sure your twists have a lot of room between them on the baking sheet.
Lightly brush the twists with the beaten egg, avoiding the pastry cream and chocolate edge of the pastry.
Bake until the pastry is puffed and golden brown, 25 to 30 minutes.
Remove the twists from the oven, leaving them on the baking sheet.
In a small heatproof bowl, stir the boiling water and sugar together and brush the still hot twists with the sugar water. This will dry as they cool and will make them lovely and shiny.