Buggy code:
@ RunWith ( Arquillian . class ) @ RunAsClient public class JMXPropertyEditorsTestCase { private static final String SAR_DEPLOMENT_NAME = "property-editors-beans" ; private static final String SAR_DEPLOMENT_FILE = ( JMXPropertyEditorsTestCase . SAR_DEPLOMENT_NAME ) + ".sar" ; @ ArquillianResource private Deployer deployer ; @ ContainerResource private ManagementClient managementClient ; private MBeanServerConnection connection ; private static final String USER_SYS_PROP = ( System . getProperty ( "os.name" , "linux" ) . contains ( "indows" ) ) ? "USERNAME" : "USER" ; @ Before public void initialize ( ) throws Exception { } @ After public void closeConnection ( ) throws Exception { } private MBeanServerConnection getMBeanServerConnection ( ) throws IOException { final String address = ( ( managementClient . getMgmtAddress ( ) ) + ":" ) + ( managementClient . getMgmtPort ( ) ) ; <START_BUG> return JMXConnectorFactory . connect ( new JMXServiceURL ( ( "service:jmx:remoting-jmx:////" + address ) ) ) . getMBeanServerConnection ( ) ; <END_BUG> } private static Asset createServiceAsset ( String attributeName , String attributeValue ) { } private static JavaArchive createArchive ( String prefix ) { } @ Deployment ( name = "AtomicBoolean" , managed = false ) public static Archive < ? > deploymentAtomicBoolean ( ) { } @ Test public void testAtomicBoolean ( ) throws Exception { } @ Deployment ( name = "AtomicInteger" , managed = false ) public static Archive < ? > deploymentAtomicInteger ( ) { } @ Test public void testAtomicInteger ( ) throws Exception { } @ Deployment ( name = "AtomicLong" , managed = false ) public static Archive < ? > deploymentAtomicLong ( ) { } @ Test public void testAtomicLong ( ) throws Exception { } @ Deployment ( name = "BigDecimal" , managed = false ) public static Archive < ? > deploymentBigDecimal ( ) { } @ Test public void testBigDecimal ( ) throws Exception { } @ Deployment ( name = "BigInteger" , managed = false ) public static Archive < ? > deploymentBigIntegerl ( ) { } @ Test public void testBigInteger ( ) throws Exception { } @ Deployment ( name = "Boolean" , managed = false ) public static Archive < ? > deploymentBoolean ( ) { } @ Test public void testBoolean ( ) throws Exception { } @ Deployment ( name = "BooleanArray" , managed = false ) public static Archive < ? > deploymentBooleanArray ( ) { } @ Test public void testBooleanArray ( ) throws Exception { } @ Deployment ( name = "Byte" , managed = false ) public static Archive < ? > deploymentByte ( ) { } @ Test public void testByte ( ) throws Exception { } @ Deployment ( name = "ByteArray" , managed = false ) public static Archive < ? > deploymentByteArray ( ) { } @ Test public void testByteArray ( ) throws Exception { } @ Deployment ( name = "Char" , managed = false ) public static Archive < ? > deploymentChar ( ) { } @ Test public void testChar ( ) throws Exception { } @ Deployment ( name = "CharacterArray" , managed = false ) public static Archive < ? > deploymentCharacterArray ( ) { } @ Test public void testCharacterArray ( ) throws Exception { } @ Deployment ( name = "Clazz" , managed = false ) public static Archive < ? > deploymentClazz ( ) { } @ Test public void testClazz ( ) throws Exception { } @ Deployment ( name = "ClassArray" , managed = false ) public static Archive < ? > deploymentClassArray ( ) { } @ Test public void testClassArray ( ) throws Exception { } @ Deployment ( name = "Document" , managed = false ) public static Archive < ? > deploymentDocument ( ) { } @ Test @ Ignore ( "JBossServiceXmlDescriptorParser<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>support<seq2seq4repair_space>XML<seq2seq4repair_space>as<seq2seq4repair_space>attribs." ) public void testDocument ( ) throws Exception { } @ Deployment ( name = "Double" , managed = false ) public static Archive < ? > deploymentDouble ( ) { } @ Test public void testDouble ( ) throws Exception { } @ Deployment ( name = "Element" , managed = false ) public static Archive < ? > deploymentElement ( ) { } @ Test @ Ignore ( "JBossServiceXmlDescriptorParser<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>support<seq2seq4repair_space>XML<seq2seq4repair_space>as<seq2seq4repair_space>attribs." ) public void testElement ( ) throws Exception { } @ Deployment ( name = "File" , managed = false ) public static Archive < ? > deploymentFile ( ) { } @ Test public void testFile ( ) throws Exception { } @ Deployment ( name = "Float" , managed = false ) public static Archive < ? > deploymentFloat ( ) { } @ Test public void testFloat ( ) throws Exception { } @ Deployment ( name = "FloatArray" , managed = false ) public static Archive < ? > deploymentFloatArray ( ) { } @ Test public void testFloatArray ( ) throws Exception { } @ Deployment ( name = "InetAddress" , managed = false ) public static Archive < ? > deploymentInetAddress ( ) { } @ Test public void testInetAddress ( ) throws Exception { } @ Deployment ( name = "InetAddressArray" , managed = false ) public static Archive < ? > deploymentInetAddressArray ( ) { } @ Test public void testInetAddressArray ( ) throws Exception { } @ Deployment ( name = "Integer" , managed = false ) public static Archive < ? > deploymentInteger ( ) { } @ Test public void testInteger ( ) throws Exception { } @ Deployment ( name = "IntegerArray" , managed = false ) public static Archive < ? > deploymentIntegerArray ( ) { } @ Test public void testIntegerArray ( ) throws Exception { } @ Deployment ( name = "Locale" , managed = false ) public static Archive < ? > deploymentLocale ( ) { } @ Test public void testLocale ( ) throws Exception { }

Fix:
return JMXConnectorFactory . connect ( new JMXServiceURL ( ( "service:jmx:http-remoting-jmx:////" + address ) ) ) . getMBeanServerConnection ( ) ;