runAndAsset(deployment, ShrinkWrap.create(JavaArchive.class), shouldBeFound, "META-INF/beans.xml");
}
public void runAndAsset(Archive<?> deployment, Archive<?> protocol, boolean shouldBeFound, String expectedLocation)
{
new BeansXMLProtocolProcessor().process(
new TestDeployment(deployment, new ArrayList<Archive<?>>()), protocol);
System.out.println(protocol.toString(true));
Assert.assertEquals(
"Verify beans.xml was " + (!shouldBeFound ? "not ":"") + "found in "+ expectedLocation,