Spring Boot Configuration – Properties not loaded

I had recently a very interesting problem using Spring Boot and the auto magic concerning the configuration. The Problem

Configuration was not available in my Unit tests but it was working fine in the normal application. I spend a lot of time searching but without real good post concerning this issue. This code already…