public void testWriteAttributeValue() throws Exception {
ModelNode read = createOperation(READ_ATTRIBUTE_OPERATION, "profile", "profileA", "subsystem", "subsystem2");
read.get(NAME).set("long");
ModelNode result = executeForResult(read);
assertEquals(ModelType.LONG, result.getType());
long original = result.asLong();
ModelNode write = createOperation(WRITE_ATTRIBUTE_OPERATION, "profile", "profileA", "subsystem", "subsystem2");
write.get(NAME).set("long");
try {
write.get(VALUE).set(99999L);