Buggy code:
@ RunWith ( Arquillian . class ) @ RunAsClient public class EJBClientAPIUsageTestCase { private static final Logger logger = Logger . getLogger ( EJBClientAPIUsageTestCase . class ) ; private static final String APP_NAME = "ejb-remote-client-api-test" ; private static final String MODULE_NAME = "ejb" ; @ Deployment public static Archive < ? > createDeployment ( ) { } @ Before public void beforeTest ( ) throws Exception { } @ Test public void testRemoteSLSBInvocation ( ) throws Exception { } @ Test public void testValueObjectWithTransientField ( ) throws Exception { } @ Test public void testRemoteSLSBWithInterceptors ( ) throws Exception { } @ Test public void testRemoteSLSBWithCustomObjects ( ) throws Exception { } @ Test public void testSFSBInvocation ( ) throws Exception { } @ Test @ Ignore ( "No<seq2seq4repair_space>longer<seq2seq4repair_space>appropriate,<seq2seq4repair_space>since<seq2seq4repair_space>a<seq2seq4repair_space>proxy<seq2seq4repair_space>can<seq2seq4repair_space>no<seq2seq4repair_space>longer<seq2seq4repair_space>be<seq2seq4repair_space>created<seq2seq4repair_space>without<seq2seq4repair_space>a<seq2seq4repair_space>session,<seq2seq4repair_space>for<seq2seq4repair_space>a<seq2seq4repair_space>SFSB.<seq2seq4repair_space>" + "Need<seq2seq4repair_space>to<seq2seq4repair_space>think<seq2seq4repair_space>if<seq2seq4repair_space>there's<seq2seq4repair_space>a<seq2seq4repair_space>different<seq2seq4repair_space>way<seq2seq4repair_space>to<seq2seq4repair_space>test<seq2seq4repair_space>this.<seq2seq4repair_space>Else<seq2seq4repair_space>just<seq2seq4repair_space>remove<seq2seq4repair_space>this<seq2seq4repair_space>test" ) public void testSFSBAccessFailureWithoutSession ( ) throws Exception { <START_BUG> final StatefulEJBLocator < Counter > locator = new StatefulEJBLocator < Counter > ( Counter . class , EJBClientAPIUsageTestCase . APP_NAME , EJBClientAPIUsageTestCase . MODULE_NAME , CounterBean . class . getSimpleName ( ) , "" , null , Affinity . NONE ) ; <END_BUG> final Counter counter = EJBClient . createProxy ( locator ) ; Assert . assertNotNull ( "Received<seq2seq4repair_space>a<seq2seq4repair_space>null<seq2seq4repair_space>proxy" , counter ) ; try { final int initialCount = counter . getCount ( ) ; Assert . fail ( "Expected<seq2seq4repair_space>a<seq2seq4repair_space>EJBException<seq2seq4repair_space>for<seq2seq4repair_space>calling<seq2seq4repair_space>a<seq2seq4repair_space>stateful<seq2seq4repair_space>session<seq2seq4repair_space>bean<seq2seq4repair_space>without<seq2seq4repair_space>creating<seq2seq4repair_space>a<seq2seq4repair_space>session" ) ; } catch ( EJBException ejbe ) { EJBClientAPIUsageTestCase . logger . info ( "Received<seq2seq4repair_space>the<seq2seq4repair_space>expected<seq2seq4repair_space>exception" , ejbe ) ; } } @ Test public void testNonExistentEJBAccess ( ) throws Exception { } @ Test public void testNonExistentViewForEJB ( ) throws Exception { } @ Test public void testApplicationExceptionOnSLSBMethod ( ) throws Exception { } @ Test public void testSystemExceptionOnSLSBMethod ( ) throws Exception { } @ Test public void testAsyncFutureMethodOnSLSB ( ) throws Exception { } @ Test public void testGetBusinessObjectRemote ( ) throws Exception { } @ Test public void testCdiRequestScopeActive ( ) { } @ Test public void testNonSerializableResponse ( ) throws InterruptedException , ExecutionException { } }

Fix:
final StatefulEJBLocator < Counter > locator = new StatefulEJBLocator < Counter > ( Counter . class , EJBClientAPIUsageTestCase . APP_NAME , EJBClientAPIUsageTestCase . MODULE_NAME , CounterBean . class . getSimpleName ( ) , "" , null , Affinity . NONE , null ) ;