The cake is done when a toothpick in the center comes out clean. You can also use a narrow paring knife instead. Also, the cake should be slightly brown, with the edges starting to pull away from the edges of the pan.