If you have a 12v cordless drill or some other tool that uses a 12v power pack, you can plug your wires into the battery receptacles. The polarity is usually clearly marked. You may not want to operate electronics this way for a long period, but it’s a convenient way to test things out.