title: How to fetch value in junit from !unit profiles?
body: <p>I have a configuration file with <code>@Profile("!unit")</code></p>
  
  <pre><code>@PropertySource(
      value = {"classpath:abcd-application.properties"},
      ignoreResourceNotFound = true)
  @Configuration
  @ComponentScan("abcd"), 
  </code></pre>
  
  <p>I have used <code>@Value("${abcd-application.properties.name})</code> to give the value of string name. I want this value in my junit to be fetched. I tried adding a bean in the base test but it is not working. I am getting this error </p>
  
  <blockquote>
    <p>java.lang.IllegalStateException: Failed to load
    ApplicationContext......Caused by:
    org.springframework.beans.factory.UnsatisfiedDependencyException:
    Error creating bean with name'abcd'...</p>
  </blockquote>
  
  <p>Can someone help?</p>