public void test_logical_extension() throws Exception {
ObjectName on = new ObjectName(EPRStorageMBean.objectName);
getServer().invoke(on, "clearMessage", null, null);
final LogicalEPR logicalEPR = new LogicalEPR("MyServiceCategory", "MyService4") ;
final String tag = "TestTag" ;
final String prefix = "TestPrefix" ;
final String value = "TestValue" ;
logicalEPR.getAddr().addExtension(tag, prefix, Service4Action.TEST_URI, value) ;
final Message message = MessageFactory.getInstance().getMessage() ;
message.getBody().add("Incoming Test Payload") ;
logicalEPR.getServiceInvoker().deliverAsync(message) ;
Thread.sleep(10000);
String messageOutput = (String) getServer().getAttribute(on, "Message");
System.out.println("value from JMX = " + messageOutput);
final String expectedOutput = "Prefix " + prefix + " Tag " + tag + " value " + value ;