Insert a toothpick into the center of the cake. If it comes out with a few moist crumbs attached, the cake is done. If it comes out with wet batter, continue baking for a few more minutes.