Insert a wooden skewer or a toothpick into the core of it. If the skewer comes out clean, then the cake is ready. If it's wet, cook for a few more minutes and repeat the skewer test.