In my case the packages were different between the Application and Test classes
package com.example.abc;
...
@SpringBootApplication
public class ProducerApplication {
and
package com.example.abc_etc;
...
@RunWith(SpringRunner.class)
@SpringBootTest
public class ProducerApplicationTest {
After making them agree the tests ran correctly.