Buggy code:
ModelControllerService ( final ControlledProcessState processState ) { } ModelControllerService ( final ControlledProcessState processState , final ConfigurationPersister configurationPersister ) { } @ Override protected void initModel ( Resource rootResource , ManagementResourceRegistration rootRegistration ) { } @ Override protected void finishBoot ( ) throws ConfigurationPersistenceException { } } @ Test public void testGoodModelExecution ( ) throws Exception { } @ Test public void testGoodModelExecutionNonRecursive ( ) throws Exception { } @ Test public void testGoodModelExecutionTxRollback ( ) { } @ Test public void testGoodModelExecutionTxRollbackNonRecursive ( ) throws Exception { } @ Test public void testModelStageFailureExecution ( ) throws Exception { } @ Test public void testModelStageFailureExecutionNonRecursive ( ) throws Exception { } @ Test public void testModelStageUnhandledFailureExecution ( ) throws Exception { } @ Test public void testModelStageUnhandledFailureExecutionNonRecursive ( ) throws Exception { } @ Test public void testHandleFailedExecution ( ) throws Exception { } @ Test public void testHandleFailedExecutionNonRecursive ( ) throws Exception { } @ Test public void testRuntimeStageFailedNoRollback ( ) throws Exception { } @ Test public void testRuntimeStageFailedNoRollbackNonRecursive ( ) throws Exception { } @ Test public void testRuntimeStageUnhandledFailureNoRollback ( ) throws Exception { } @ Test public void testRuntimeStageUnhandledFailureNoRollbackNonRecursive ( ) throws Exception { } @ Test public void testOperationFailedExceptionNoRollback ( ) throws Exception { } @ Test public void testOperationFailedExceptionNoRollbackNonRecursive ( ) throws Exception { } @ Test public void testPathologicalRollback ( ) throws Exception { } @ Test public void testPathologicalRollbackNonRecursive ( ) throws Exception { } @ Test public void testGoodService ( ) throws Exception { } @ Test public void testGoodServiceNonRecursive ( ) throws Exception { } @ Test public void testGoodServiceTxRollback ( ) throws Exception { } @ Test public void testGoodServiceTxRollbackNonRecursive ( ) throws Exception { } @ Test public void testBadService ( ) throws Exception { } @ Test public void testBadServiceNonRecursive ( ) throws Exception { } @ Test public void testMissingService ( ) throws Exception { } @ Test public void testMissingServiceNonRecursive ( ) throws Exception { } @ Test public void testGlobal ( ) throws Exception { } @ Test @ Ignore ( "AS7-1103<seq2seq4repair_space>Fails<seq2seq4repair_space>intermittently<seq2seq4repair_space>for<seq2seq4repair_space>unknown<seq2seq4repair_space>reasons" ) public void testReloadRequired ( ) throws Exception { } @ Test @ Ignore ( "AS7-1103<seq2seq4repair_space>Fails<seq2seq4repair_space>intermittently<seq2seq4repair_space>for<seq2seq4repair_space>unknown<seq2seq4repair_space>reasons" ) public void testReloadRequiredNonRecursive ( ) throws Exception { } @ Test @ Ignore ( "AS7-1103<seq2seq4repair_space>Fails<seq2seq4repair_space>intermittently<seq2seq4repair_space>for<seq2seq4repair_space>unknown<seq2seq4repair_space>reasons" ) public void testRestartRequired ( ) throws Exception { } @ Test @ Ignore ( "AS7-1103<seq2seq4repair_space>Fails<seq2seq4repair_space>intermittently<seq2seq4repair_space>for<seq2seq4repair_space>unknown<seq2seq4repair_space>reasons" ) public void testRestartRequiredNonRecursive ( ) throws Exception { } @ Test public void testReloadRequiredTxRollback ( ) throws Exception { } @ Test public void testReloadRequiredTxRollbackNonRecursive ( ) throws Exception { } @ Test public void testRestartRequiredTxRollback ( ) throws Exception { } @ Test public void testRestartRequiredTxRollbackNonRecursive ( ) throws Exception { } @ Test public void testRemoveDependentService ( ) throws Exception { } @ Test public void testRemoveDependentNonRecursive ( ) throws Exception { } @ Test public void testWildCardNavigation ( ) throws Exception { } public static ModelNode getOperation ( String opName , String attr , int val ) { } public static ModelNode getOperation ( String opName , String attr , int val , String rollbackName ) { } public static ModelNode getOperation ( String opName , String attr , int val , String rollbackName , boolean async ) { } public static class SetupHandler implements OperationStepHandler { @ Override public void execute ( OperationContext context , ModelNode operation ) { ModelNode model = new ModelNode ( ) ; model . get ( "attr1" ) . set ( 1 ) ; model . get ( "attr2" ) . set ( 2 ) ; context . readResourceForUpdate ( EMPTY_ADDRESS ) . getModel ( ) . set ( model ) ; final ModelNode child1 = new ModelNode ( ) ; child1 . get ( "attribute1" ) . set ( 1 ) ; final ModelNode child2 = new ModelNode ( ) ; child2 . get ( "attribute2" ) . set ( 2 ) ; context . createResource ( EMPTY_ADDRESS . append ( PathElement . pathElement ( "child" , "one" ) ) ) . getModel ( ) . set ( child1 ) ; context . createResource ( EMPTY_ADDRESS . append ( PathElement . pathElement ( "child" , "two" ) ) ) . getModel ( ) . set ( child2 ) ; <START_BUG> context . completeStep ( ) ; <END_BUG> } } public static class ModelStageGoodHandler implements OperationStepHandler { @ Override public void execute ( OperationContext context , ModelNode operation ) { String name = operation . require ( NAME ) . asString ( ) ; ModelNode model = context . readResourceForUpdate ( EMPTY_ADDRESS ) . getModel ( ) ; ModelNode attr = model . get ( name ) ; final int current = attr . asInt ( ) ; attr . set ( operation . require ( VALUE ) ) ; context . getResult ( ) . set ( current ) ; if ( ModelControllerImplUnitTestCase . useNonRecursive ) { context . completeStep ( NOOP_ROLLBACK_HANDLER ) ; } else { context . completeStep ( ) ; } } } public static class ModelStageFailsHandler implements OperationStepHandler { @ Override public void execute ( OperationContext context , ModelNode operation ) { String name = operation . require ( NAME ) . asString ( ) ; ModelNode model = context . readResourceForUpdate ( EMPTY_ADDRESS ) . getModel ( ) ; ModelNode attr = model . get ( name ) ; attr . set ( operation . require ( VALUE ) ) ; context . getFailureDescription ( ) . set ( "this<seq2seq4repair_space>request<seq2seq4repair_space>is<seq2seq4repair_space>bad" ) ; if ( ModelControllerImplUnitTestCase . useNonRecursive ) { context . completeStep ( NOOP_ROLLBACK_HANDLER ) ; } else { context . completeStep ( ) ; } } } public static class ModelStageThrowsExceptionHandler implements OperationStepHandler { @ Override public void execute ( OperationContext context , ModelNode operation ) { String name = operation . require ( NAME ) . asString ( ) ; ModelNode model = context . readResourceForUpdate ( EMPTY_ADDRESS ) . getModel ( ) ; ModelNode attr = model . get ( name ) ;

Fix:
context . stepCompleted ( ) ;