### Question:
Util { public static ModelNode getUndefineAttributeOperation(final PathAddress address, String attributeName) { ModelNode op = createEmptyOperation(UNDEFINE_ATTRIBUTE_OPERATION, address); op.get(NAME).set(attributeName); return op; } private  Util(); static String getNameFromAddress(final ModelNode address); static String getNameFromAddress(PathAddress address); static ModelNode createAddOperation(final PathAddress address); static ModelNode createAddOperation(); static ModelNode createRemoveOperation(final PathAddress address); static ModelNode createOperation(final String operationName, final PathAddress address); static ModelNode createOperation(final OperationDefinition operationDefinition, final PathAddress address); static ModelNode createEmptyOperation(String operationName, final PathAddress address); static ModelNode getEmptyOperation(String operationName, ModelNode address); static ModelNode getResourceRemoveOperation(final PathAddress address); static ModelNode getWriteAttributeOperation(ModelNode address, String attributeName, String value); static ModelNode getWriteAttributeOperation(final PathAddress address, String attributeName, int value); static ModelNode getWriteAttributeOperation(final PathAddress address, String attributeName, boolean value); static ModelNode getWriteAttributeOperation(final ModelNode address, String attributeName, ModelNode value); static ModelNode getWriteAttributeOperation(final PathAddress  address, String attributeName, String value); static ModelNode getWriteAttributeOperation(final PathAddress address, String attributeName, ModelNode value); static ModelNode getReadAttributeOperation(final PathAddress address, String attributeName); static ModelNode getReadResourceDescriptionOperation(final PathAddress address); static ModelNode getUndefineAttributeOperation(final PathAddress address, String attributeName); static boolean isExpression(String value); static ModelNode getOperation(final String operationName, final PathAddress address, final ModelNode params); static ModelNode getOperation(String operationName, ModelNode address, ModelNode params); static PathAddress getParentAddressByKey(PathAddress address, String parentKey); static ModelNode validateOperation(ModelNode operation);  }### Answer:
@Test public void testGetUndefineAttributeOperation() { PathAddress address = PathAddress.pathAddress("subsystem", "test"); String attributeName = "attr"; ModelNode operation = Util.getUndefineAttributeOperation(address, attributeName); assertThat(operation.hasDefined(OP), is(true)); assertThat(operation.get(OP).asString(), is(UNDEFINE_ATTRIBUTE_OPERATION)); assertThat(operation.hasDefined(OP_ADDR), is(true)); assertThat(operation.get(OP_ADDR), is(address.toModelNode())); assertThat(operation.hasDefined(NAME), is(true)); assertThat(operation.get(NAME).asString(), is(attributeName)); }