@RunAsClient
@RunWith(Arquillian.class)
public class SubjectServiceTomEETest {
@Deployment
public static WebArchive archive() {
return new WebModule(SubjectServiceTomEETest.class).getArchive()
.addClass(VoteCounter.class)
.addPackage(Subject.class.getPackage()) // domain
.addAsWebInfResource(new ClassLoaderAsset("META-INF/persistence.xml"), "persistence.xml")
.addAsWebInfResource(new ClassLoaderAsset("META-INF/env-entries.properties"), "env-entries.properties")
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")