public void setup() {
<BUG>rootRegistration = ManagementResourceRegistration.Factory.create(new TestDescriptionProvider("RootResource"));
}</BUG>
@Test
<BUG>public void testHandlersOnRootResource() throws Exception {
rootRegistration.registerOperationHandler("one", TestHandler.ONE, new TestDescriptionProvider("one"));
rootRegistration.registerOperationHandler("two", TestHandler.TWO, new TestDescriptionProvider("two"), false,
OperationEntry.EntryType.PUBLIC, EnumSet.of(OperationEntry.Flag.READ_ONLY));</BUG>
OperationStepHandler oneHandler = rootRegistration.getOperationHandler(PathAddress.EMPTY_ADDRESS, "one");
assertSame(TestHandler.ONE, oneHandler);

public void setup() {
rootRegistration = ManagementResourceRegistration.Factory.create(new SimpleResourceDefinition(null, new NonResolvingResourceDescriptionResolver()));
}
@Test
public void testHandlersOnRootResource() throws Exception {
rootRegistration.registerOperationHandler(getOpDef("one"), TestHandler.ONE);
rootRegistration.registerOperationHandler(getOpDef("two", OperationEntry.Flag.READ_ONLY), TestHandler.TWO);
OperationStepHandler oneHandler = rootRegistration.getOperationHandler(PathAddress.EMPTY_ADDRESS, "one");
assertSame(TestHandler.ONE, oneHandler);
