How to set spring active profile when testing Struts2
<p>When testing an stand alone spring environment we can do:</p>

<pre><code>@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({ "classpath:spring-*.xml" })
@ActiveProfiles(  profiles = { "Prod","bsi"})
public class SampleTest 
</code></pre>

<p>When testing Struts 2 with spring integration we can use:</p>

<pre><code>public class SessionManagement extends StrutsSpringTestCase  {

    @Override
    public String[] getContextLocations() {

      return new String[] {"classpath:spring-*.xml"};

    }
} 
</code></pre>

<p>But how can I set the active spring profile here?</p>