java junit spring spring-boot

How to exclude *AutoConfiguration classes in Spring Boot JUnit tests?

I tried:

@SpringApplicationConfiguration(classes = Application.class)
public class LikeControllerTest {

However the CRaSSHD still starts up. While currently it doesn’t harm the test, I’d like to disable unnecessary modules during unit testing to speed up and also avoid potential conflicts.