Buggy code:
public class ExtendWildCardRegistrationUnitTestCase { private static final PathElement parentWild = PathElement . pathElement ( "parent" ) ; private static final PathElement parentExt = PathElement . pathElement ( "parent" , "ext" ) ; private static final PathElement childWild = PathElement . pathElement ( "child" ) ; private static final PathElement childExt = PathElement . pathElement ( "child" , "ext" ) ; private static final PathElement childWildExt = PathElement . pathElement ( "child" , "wild-ext" ) ; private static final DescriptionProvider rootDP = new ExtendWildCardRegistrationUnitTestCase . TestDescriptionProvider ( "root" ) ; private static final DescriptionProvider parentWildDP = new ExtendWildCardRegistrationUnitTestCase . TestDescriptionProvider ( "parentWild" ) ; private static final DescriptionProvider parentExtDP = new ExtendWildCardRegistrationUnitTestCase . TestDescriptionProvider ( "parentExt" ) ; private static final DescriptionProvider childWildDP = new ExtendWildCardRegistrationUnitTestCase . TestDescriptionProvider ( "childWild" ) ; private static final DescriptionProvider childExtDP = new ExtendWildCardRegistrationUnitTestCase . TestDescriptionProvider ( "childExt" ) ; private static final DescriptionProvider childWildExtDP = new ExtendWildCardRegistrationUnitTestCase . TestDescriptionProvider ( "childWildExt" ) ; private static final OperationStepHandler parentWildAttr = new ExtendWildCardRegistrationUnitTestCase . TestOSH ( ) ; private static final OperationStepHandler parentExtAttr = new ExtendWildCardRegistrationUnitTestCase . TestOSH ( ) ; private static final OperationStepHandler childWildAttr = new ExtendWildCardRegistrationUnitTestCase . TestOSH ( ) ; private static final OperationStepHandler childExtAttr = new ExtendWildCardRegistrationUnitTestCase . TestOSH ( ) ; private static final OperationStepHandler childWildExtAttr = new ExtendWildCardRegistrationUnitTestCase . TestOSH ( ) ; private static final OperationStepHandler parentWildOverrideAttr = new ExtendWildCardRegistrationUnitTestCase . TestOSH ( ) ; private static final OperationStepHandler parentExtOverrideAttr = new ExtendWildCardRegistrationUnitTestCase . TestOSH ( ) ; private static final OperationStepHandler childWildOverrideAttr = new ExtendWildCardRegistrationUnitTestCase . TestOSH ( ) ; private static final OperationStepHandler childExtOverrideAttr = new ExtendWildCardRegistrationUnitTestCase . TestOSH ( ) ; private static final OperationStepHandler parentWildOp = new ExtendWildCardRegistrationUnitTestCase . TestOSH ( ) ; private static final OperationStepHandler parentExtOp = new ExtendWildCardRegistrationUnitTestCase . TestOSH ( ) ; private static final OperationStepHandler childWildOp = new ExtendWildCardRegistrationUnitTestCase . TestOSH ( ) ; private static final OperationStepHandler childExtOp = new ExtendWildCardRegistrationUnitTestCase . TestOSH ( ) ; private static final OperationStepHandler childWildExtOp = new ExtendWildCardRegistrationUnitTestCase . TestOSH ( ) ; private static final OperationStepHandler parentWildOverrideOp = new ExtendWildCardRegistrationUnitTestCase . TestOSH ( ) ; private static final OperationStepHandler parentExtOverrideOp = new ExtendWildCardRegistrationUnitTestCase . TestOSH ( ) ; private static final OperationStepHandler childWildOverrideOp = new ExtendWildCardRegistrationUnitTestCase . TestOSH ( ) ; private static final OperationStepHandler childExtOverrideOp = new ExtendWildCardRegistrationUnitTestCase . TestOSH ( ) ; private static ManagementResourceRegistration registration ; private static ManagementResourceRegistration parentWildReg ; private static ManagementResourceRegistration parentExtReg ; private static ManagementResourceRegistration childWildReg ; private static ManagementResourceRegistration childWildExtReg ; private static ManagementResourceRegistration childExtReg ; @ BeforeClass public static void setup ( ) { } @ AfterClass public static void tearDown ( ) { } @ Test public void testParentDescriptionProvider ( ) throws Exception { } @ Test public void testParentWildcardAttribute ( ) throws Exception { } @ Test public void testParentExtensionAttribute ( ) throws Exception { } @ Test public void testParentOverrideAttribute ( ) throws Exception { } @ Test public void testParentMissingAttribute ( ) throws Exception { } @ Test public void testParentWildcardOperation ( ) throws Exception { } @ Test public void testParentExtensionOperation ( ) throws Exception { } @ Test public void testParentOverrideOperation ( ) throws Exception { } @ Test public void testParentMissingOperation ( ) throws Exception { } @ Test public void testChildDescriptionProvider ( ) throws Exception { } @ Test public void testChildWildcardAttribute ( ) throws Exception { } @ Test public void testChildExtensionAttribute ( ) throws Exception { } @ Test public void testChildOverrideAttribute ( ) throws Exception { } @ Test public void testChildMissingAttribute ( ) throws Exception { } @ Test public void testChildWildcardOperation ( ) throws Exception { } @ Test public void testChildExtensionOperation ( ) throws Exception { } @ Test public void testChildOverrideOperation ( ) throws Exception { } @ Test public void testChildMissingOperation ( ) throws Exception { } @ Test public void testDuplicateSubModel ( ) { } private static class TestDescriptionProvider implements DescriptionProvider { private final String desc ; public TestDescriptionProvider ( String desc ) { } @ Override public ModelNode getModelDescription ( Locale locale ) { } } private static class TestOSH implements OperationStepHandler { @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { <START_BUG> context . completeStep ( ) ; <END_BUG> } } }

Fix:
context . completeStep ( NOOP_ROLLBACK_HANDLER ) ;