private void validatePool(ModelNode address, ModelNode resourceDescription, ModelNode resource) {
for (AttributeDefinition attr : POOL_ATTRIBUTES) {
final String name = attr.getName();
final ModelType expectedType = attr.getType();
assertTrue(resourceDescription.get(ATTRIBUTES, name).isDefined());
assertEquals(ModelType.STRING, resourceDescription.get(ATTRIBUTES, name, DESCRIPTION).getType());
assertEquals(expectedType, resourceDescription.get(ATTRIBUTES, name, TYPE).asType());
assertTrue(name + " is not defined", resource.get(name).isDefined());