}
@Test
public void configureContainerMultipleTimes() throws Exception
{
Project project = initializeJavaProject();
MavenCoreFacet coreFacet = project.getFacet(MavenCoreFacet.class);
List<Profile> profiles = coreFacet.getPOM().getProfiles();
assertThat(profiles.size(), is(0));
queueInputLines("JBOSS_AS_MANAGED_6", "", "", "", "", "", "", "");
getShell().execute("arquillian setup");
queueInputLines("arquillian-jbossas-managed-6", "2", "8000", "");
getShell().execute("arquillian configure-container");
queueInputLines("arquillian-jbossas-managed-6", "2", "8000", "");
getShell().execute("arquillian configure-container");
ResourceFacet facet = project.getFacet(ResourceFacet.class);
FileResource<?> arquillianXML = facet.getTestResource("arquillian.xml");
assertThat(arquillianXML, is(notNullValue()));
assertThat(arquillianXML.exists(), is(true));