expected.add(new Attribute("DoubleRAR", Double.valueOf("7e8")));
MBeanServerConnection connection = getServer();
AttributeList result = connection.getAttributes(PropertyTestResourceAdapterMBean.NAME, getExpectedStringArray(expected));
AttributeList resultClone = (AttributeList) result.clone();
resultClone.removeAll(expected);
assertTrue("Did not expect: " + list(resultClone) + " expected " + list(expected), resultClone.size() == 0);
expected.removeAll(result);
assertTrue("Expected: " + list(expected) + " got " + list(result), expected.size() == 0);
}