title: Enable a Spring profile depending on other profiles unavailablilty
body: <p>I want to create 2 spring profiles , one runs in test and others in other environments. Depending on a profile that is inactive , i need to define some beans. So essentially want to do below</p>
  
  <p>e.g. </p>
  
  <pre><code>&lt;beans profile="test"&gt;
  &lt;bean id="testconstructorBean" 
  ....
  &lt;/beans&gt;
  &lt;!- is test is not available--&gt;
  &lt;beans profile="!test"&gt;
  &lt;bean id="constructorBean"
  ...
  &lt;/beans&gt;
  </code></pre>
  
  <p>I have seen on reference <a href="https://stackoverflow.com/questions/14731979/spring-profile-groups">spring profles group</a>, which can also work. But what i want is to have 2 alternative configurations which cannot coexists.</p>
  
  <p>Regards
  N</p>