child.registerOperationHandler("two", TestHandler.CHILD, new TestDescriptionProvider("two"), true,
OperationEntry.EntryType.PUBLIC, EnumSet.of(OperationEntry.Flag.MASTER_HOST_CONTROLLER_ONLY));
ManagementResourceRegistration grandchild = child.registerSubModel(grandchildElement, new TestDescriptionProvider("grandchild"));
OperationStepHandler oneHandler = child.getOperationHandler(PathAddress.EMPTY_ADDRESS, "one");
assertSame(TestHandler.CHILD, oneHandler);
OperationStepHandler twoHandler = child.getOperationHandler(PathAddress.EMPTY_ADDRESS, "two");
assertSame(TestHandler.CHILD, twoHandler);
OperationStepHandler threeHandler = child.getOperationHandler(PathAddress.EMPTY_ADDRESS, "three");
assertSame(TestHandler.PARENT, threeHandler);
oneHandler = rootRegistration.getOperationHandler(childAddress, "one");
assertSame(TestHandler.CHILD, oneHandler);
twoHandler = rootRegistration.getOperationHandler(childAddress, "two");
assertSame(TestHandler.CHILD, twoHandler);
threeHandler = child.getOperationHandler(PathAddress.EMPTY_ADDRESS, "three");
assertSame(TestHandler.PARENT, threeHandler);
OperationStepHandler fourHandler = child.getOperationHandler(PathAddress.EMPTY_ADDRESS, "four");
assertNull(fourHandler);
fourHandler = rootRegistration.getOperationHandler(childAddress, "four");
assertNull(fourHandler);