The trick to knowing whether or not your cake is done is to give it a little shake. The middle should jiggle, while the edges stay firm.