Insert a toothpick into the center of the cake; if it comes out clean or with a few crumbs, the cake is done. The edges should also pull away slightly from the pan.