private Event<ExecutionEvent> executionEvent;
@Inject
private Instance<Deployment> deployment;
public void execute(@Observes Test event) throws Exception
{
<BUG>boolean runAsClient = RunModeUtils.isRunAsClient(
</BUG>
this.deployment.get(),
<BUG>event.getTestClass().getJavaClass(),
event.getTestMethod());</BUG>
if(runAsClient)

private Event<ExecutionEvent> executionEvent;
@Inject
private Instance<Deployment> deployment;
public void execute(@Observes Test event) throws Exception
{
boolean runAsClient = RunModeUtils.isRunAsClientAndCheck(
this.deployment.get(),
event.getTestClass(),
event.getTestMethod());
