assertEquals("listeners", listeners.getName());
assertEquals(Region.SEPARATOR + "listeners", listeners.getFullPath());
assertNotNull(listeners.getAttributes());
assertEquals(DataPolicy.PARTITION, listeners.getAttributes().getDataPolicy());
PartitionAttributes listenersPartitionAttributes = listeners.getAttributes().getPartitionAttributes();
assertNotNull(listenersPartitionAttributes);
assertNotNull(listenersPartitionAttributes.getPartitionListeners());
assertEquals(4, listenersPartitionAttributes.getPartitionListeners().length);
List<String> expectedNames = Arrays.asList("X", "Y", "Z", "ABC");
for (PartitionListener listener : listenersPartitionAttributes.getPartitionListeners()) {
assertTrue(listener instanceof TestPartitionListener);
assertTrue(expectedNames.contains(listener.toString()));
}
}