Buggy code:
private static final String ALIASED = "aliased" ; static final String MODEL = "model" ; private static final String CHILD = "child" ; private static final String KID_MODEL = "kid" ; private static final String KID_ALIASED = "kid-aliased" ; @ Test public void checkReadResourceDescription ( ) throws Exception { } @ Test public void testAliasedAttributes ( ) throws Exception { } @ Test public void testAliasedResourceAndAttributeReadWriteFromCore ( ) throws Exception { } @ Test public void testAliasedResourceAndAttributeReadWriteFromAliased ( ) throws Exception { } @ Test public void testInvokeOpFromCore ( ) throws Exception { } @ Test public void testInvokeOpFromAliased ( ) throws Exception { } @ Test public void readChildrenTypes ( ) throws Exception { } @ Test public void testReadChildresNamesNoModel ( ) throws Exception { } @ Test public void testReadChildresNamesWithModel ( ) throws Exception { } @ Test public void testReadChildrenResources ( ) throws Exception { } @ Test public void testReadOperationNamesCore ( ) throws Exception { } @ Test public void testReadOperationNamesAliased ( ) throws Exception { } @ Test public void testReadOperationDescriptionCore ( ) throws Exception { } @ Test public void testReadOperationDescriptionAliased ( ) throws Exception { } @ Test public void testDescribeHandler ( ) throws Exception { } private void testAliasedResourceAndAttributeReadWrite ( String main , String other ) throws Exception { } private void checkInvokeOp ( String main , String other ) throws Exception { } private void addCore ( String main ) throws Exception { } private void addChild ( String main ) throws Exception { } private void readResource ( boolean includeRuntime , boolean includeAlias , String ro , String rw , String rt , String childRw ) throws Exception { } private void readResource ( boolean includeRuntime , boolean includeAlias , String ro , String rw , String rt , String childRw , String ... address ) throws Exception { } private void checkResource ( boolean includeAlias , ModelNode model , String ro , String rw , String rt , String childRw ) throws Exception { } private void checkReadResourceDescription ( ModelNode resource , boolean aliasedChild ) throws Exception { } private void checkChildResourceDescription ( ModelNode resource ) { } private void readOperationNames ( String core ) throws Exception { } private void checkOperationNames ( ModelNode result , String unique ) { } private void readOperationDescription ( String core ) throws Exception { } private void readOperationDescriptionForChild ( String core , String child ) throws Exception { } private void writeAttribute ( String name , String value , String ... address ) throws Exception { } private String readAttribute ( String name , String ... address ) throws Exception { } private void undefineAttribute ( String name , String ... address ) throws Exception { } private void checkAttribute ( ModelNode attr , String description , String accessType , String storage ) { } @ Override protected DescriptionProvider getRootDescriptionProvider ( ) { } @ Override protected void initModel ( Resource rootResource , ManagementResourceRegistration registration ) { registration . registerOperationHandler ( READ_RESOURCE_OPERATION , READ_RESOURCE , READ_RESOURCE_PROVIDER , true , EnumSet . of ( RUNTIME_ONLY ) ) ; registration . registerOperationHandler ( READ_ATTRIBUTE_OPERATION , READ_ATTRIBUTE , READ_ATTRIBUTE_PROVIDER , true , EnumSet . of ( RUNTIME_ONLY ) ) ; registration . registerOperationHandler ( READ_RESOURCE_DESCRIPTION_OPERATION , READ_RESOURCE_DESCRIPTION , READ_RESOURCE_DESCRIPTION_PROVIDER , true , EnumSet . of ( RUNTIME_ONLY ) ) ; registration . registerOperationHandler ( READ_CHILDREN_NAMES_OPERATION , READ_CHILDREN_NAMES , READ_CHILDREN_NAMES_PROVIDER , true , EnumSet . of ( RUNTIME_ONLY ) ) ; registration . registerOperationHandler ( READ_CHILDREN_TYPES_OPERATION , READ_CHILDREN_TYPES , READ_CHILDREN_TYPES_PROVIDER , true , EnumSet . of ( RUNTIME_ONLY ) ) ; registration . registerOperationHandler ( READ_CHILDREN_RESOURCES_OPERATION , READ_CHILDREN_RESOURCES , READ_CHILDREN_RESOURCES_PROVIDER , true , EnumSet . of ( RUNTIME_ONLY ) ) ; registration . registerOperationHandler ( READ_OPERATION_NAMES_OPERATION , READ_OPERATION_NAMES , READ_OPERATION_NAMES_PROVIDER , true , EnumSet . of ( RUNTIME_ONLY ) ) ; registration . registerOperationHandler ( READ_OPERATION_DESCRIPTION_OPERATION , READ_OPERATION_DESCRIPTION , READ_OPERATION_PROVIDER , true , EnumSet . of ( RUNTIME_ONLY ) ) ; registration . registerOperationHandler ( UNDEFINE_ATTRIBUTE_OPERATION , UNDEFINE_ATTRIBUTE , UNDEFINE_ATTRIBUTE_PROVIDER , true ) ; registration . registerOperationHandler ( WRITE_ATTRIBUTE_OPERATION , WRITE_ATTRIBUTE , WRITE_ATTRIBUTE_PROVIDER , true ) ; <START_BUG> registration . registerOperationHandler ( DESCRIBE , INSTANCE , INSTANCE ) ; <END_BUG> ManagementResourceRegistration coreResourceRegistration = registration . registerSubModel ( new AliasResourceTestCase . CoreResourceDefinition ( ) ) ; registration . registerAlias ( getAliasedModelElement ( ) , new AliasResourceTestCase . TestAliasEntry ( coreResourceRegistration ) ) ; ManagementResourceRegistration childReg = coreResourceRegistration . registerSubModel ( new AliasResourceTestCase . ChildResourceDefinition ( ) ) ; coreResourceRegistration . registerAlias ( getAliasedChildModelElement ( ) , new AliasResourceTestCase . TestAliasEntry ( childReg ) ) ; } private PathElement getCoreModelElement ( ) { } private PathElement getAliasedModelElement ( ) { } private PathElement getChildModelElement ( ) { } private PathElement getAliasedChildModelElement ( ) { } private static SimpleAttributeDefinition READ_WRITE = new SimpleAttributeDefinition ( "rw" , ModelType . STRING , true ) ; private static SimpleAttributeDefinition READ_ONLY = new SimpleAttributeDefinition ( "ro" , ModelType . STRING , false ) ; private static SimpleAttributeDefinition RUNTIME = SimpleAttributeDefinitionBuilder . create ( "rt" , STRING , false ) . setStorageRuntime ( ) . build ( ) ; private static SimpleAttributeDefinition READ_WRITE_ALIAS = SimpleAttributeDefinitionBuilder . create ( "rwa" , AliasResourceTestCase . READ_WRITE ) . setFlags ( ALIAS ) . build ( ) ; private static SimpleAttributeDefinition READ_ONLY_ALIAS = SimpleAttributeDefinitionBuilder . create ( "roa" , AliasResourceTestCase . READ_ONLY ) . setFlags ( ALIAS ) . build ( ) ; private class CoreResourceDefinition extends SimpleResourceDefinition { public CoreResourceDefinition ( ) { } @ Override public void registerAttributes ( ManagementResourceRegistration resourceRegistration ) { } @ Override public void registerOperations ( ManagementResourceRegistration resourceRegistration ) { } } private class ChildResourceDefinition extends SimpleResourceDefinition { public ChildResourceDefinition ( ) { } @ Override public void registerAttributes ( ManagementResourceRegistration resourceRegistration ) { } @ Override public void registerOperations ( ManagementResourceRegistration resourceRegistration ) { } } static ResourceDescriptionResolver createResourceDescriptionResolver ( ) { } private static class CoreAddHandler extends AbstractAddStepHandler { @ Override protected void populateModel ( ModelNode operation , ModelNode model ) throws OperationFailedException { }

Fix:
registration . registerOperationHandler ( DEFINITION , INSTANCE ) ;