public void testReadonlyMBeanAttributes() throws Exception
{
final int brokerPortNumber = getBrokerPortNumbers().iterator().next();
final int bdbPortNumber = _clusterCreator.getBdbPortForBrokerPort(brokerPortNumber);
ManagedBDBHAMessageStore storeBean = getStoreBeanForNodeAtBrokerPort(brokerPortNumber);
assertEquals("Unexpected store group name", _clusterCreator.getGroupName(), storeBean.getGroupName());
assertEquals("Unexpected store node name", _clusterCreator.getNodeNameForNodeAt(bdbPortNumber), storeBean.getNodeName());
assertEquals("Unexpected store node host port",_clusterCreator.getNodeHostPortForNodeAt(bdbPortNumber), storeBean.getNodeHostPort());
assertEquals("Unexpected store helper host port", _clusterCreator.getHelperHostPort(), storeBean.getHelperHostPort());
// As we have chosen an arbitrary broker from the cluster, we cannot predict its state
assertNotNull("Store state must not be null", storeBean.getNodeState());
}