Press a clean knife, fork, or toothpick inserted into the center of the cake. If it comes out clean without any raw cake batter, your cake is cooked.