A blood test is often the most effective way to determine whether you have a listeria infection. In some cases, samples of urine or spinal fluid will be tested as well.