Buggy code:
public class ServerGroupAffectedResourceServerGroupOperationsTestCase extends AbstractOperationTestCase { @ Test public void testAddServerGroupMaster ( ) throws Exception { } @ Test public void testAddServerGroupSlave ( ) throws Exception { } @ Test public void testAddServerGroupMasterRollback ( ) throws Exception { } @ Test public void testAddServerGroupSlaveRollback ( ) throws Exception { } private void testAddServerGroup ( boolean master , boolean rollback ) throws Exception { } @ Test ( expected = OperationFailedException . class ) public void testAddServerGroupBadProfileMaster ( ) throws Exception { } @ Test public void testAddServerGroupBadProfileSlave ( ) throws Exception { } @ Test ( expected = OperationFailedException . class ) public void testAddServerGroupBadProfileMasterRollback ( ) throws Exception { } @ Test public void testAddServerGroupBadProfileSlaveRollback ( ) throws Exception { } @ Test ( expected = OperationFailedException . class ) public void testAddServerGroupBadSocketBindingGroupMaster ( ) throws Exception { } @ Test public void testAddServerGroupBadSocketBindingGroupSlave ( ) throws Exception { } @ Test ( expected = OperationFailedException . class ) public void testAddServerGroupBadSocketBindingGroupMasterRollback ( ) throws Exception { } @ Test public void testAddServerGroupBadSocketBindingGroupSlaveRollback ( ) throws Exception { } private void testAddServerGroupBadInfo ( boolean master , boolean rollback , boolean badProfile , boolean badSocketBindingGroup ) throws Exception { } @ Test public void testRemoveServerGroupMaster ( ) throws Exception { } @ Test public void testRemoveServerGroupSlave ( ) throws Exception { } @ Test public void testRemoveServerGroupMasterRollback ( ) throws Exception { } @ Test public void testRemoveServerGroupSlaveRollback ( ) throws Exception { } private void testRemoveServerGroup ( boolean master , boolean rollback ) throws Exception { PathAddress pa = PathAddress . pathAddress ( PathElement . pathElement ( SERVER_GROUP , "group-one" ) ) ; final ServerGroupAffectedResourceServerGroupOperationsTestCase . MockOperationContext operationContext = getOperationContext ( rollback , pa ) ; final ModelNode operation = new ModelNode ( ) ; operation . get ( OP_ADDR ) . set ( pa . toModelNode ( ) ) ; operation . get ( OP ) . set ( REMOVE ) ; <START_BUG> INSTANCE . execute ( operationContext , operation ) ; <END_BUG> Assert . assertFalse ( operationContext . isReloadRequired ( ) ) ; } @ Test public void testUpdateServerGroupProfileMaster ( ) throws Exception { } @ Test public void testUpdateServerGroupProfileSlave ( ) throws Exception { } @ Test public void testUpdateServerGroupProfileMasterRollback ( ) throws Exception { } @ Test public void testUpdateServerGroupProfileSlaveRollback ( ) throws Exception { } @ Test ( expected = OperationFailedException . class ) public void testUpdateServerGroupBadProfileMaster ( ) throws Exception { } @ Test public void testUpdateServerGroupBadProfileSlave ( ) throws Exception { } @ Test ( expected = OperationFailedException . class ) public void testUpdateServerGroupBadProfileMasterRollback ( ) throws Exception { } @ Test public void testUpdateServerGroupBadProfileSlaveRollback ( ) throws Exception { } private void testUpdateServerGroupProfile ( boolean master , boolean rollback , boolean badProfile ) throws Exception { } @ Test public void testUpdateServerGroupSocketBindingGroupMaster ( ) throws Exception { } @ Test public void testUpdateServerGroupSocketBindingGroupSlave ( ) throws Exception { } @ Test public void testUpdateServerGroupSocketBindingGroupMasterRollback ( ) throws Exception { } @ Test public void testUpdateServerGroupSocketBindingGroupSlaveRollback ( ) throws Exception { } @ Test ( expected = OperationFailedException . class ) public void testUpdateServerGroupBadSocketBindingGroupMaster ( ) throws Exception { } @ Test public void testUpdateServerGroupBadSocketBindingGroupSlave ( ) throws Exception { } @ Test ( expected = OperationFailedException . class ) public void testUpdateServerGroupBadSocketBindingGroupMasterRollback ( ) throws Exception { } @ Test public void testUpdateServerGroupBadSocketBindingGroupSlaveRollback ( ) throws Exception { } private void testUpdateServerGroupSocketBindingGroup ( boolean master , boolean rollback , boolean badSocketBindingGroup ) throws Exception { } ServerGroupAffectedResourceServerGroupOperationsTestCase . MockOperationContext getOperationContext ( final boolean rollback , final PathAddress operationAddress ) { } private class MockOperationContext extends AbstractOperationTestCase . MockOperationContext { private boolean reloadRequired ; private boolean rollback ; private OperationStepHandler nextStep ; protected MockOperationContext ( final Resource root , final boolean booting , final PathAddress operationAddress , final boolean rollback ) { } public void completeStep ( ResultHandler resultHandler ) { } public void stepCompleted ( ) { } public void reloadRequired ( ) { } public boolean isReloadRequired ( ) { } public void revertReloadRequired ( ) { } public void addStep ( OperationStepHandler step , OperationContext . Stage stage ) throws IllegalArgumentException { } } }

Fix:
new ServerGroupRemoveHandler ( null ) . execute ( operationContext , operation ) ;