public void testEmptySet()
throws Exception
{
//
// Create our PropertyMap (null node).
final PropertyMap properties = new SimplePropertyMap(null);
//
// Create our reader.
final XMLPropertiesReader reader = new XMLPropertiesReaderImpl(
new XMLPropertyReaderImpl()
);
//
// Parse the test XML.
reader.read(
new StringResource(
"<properties xmlns='urn:metagrid'>"
+ "</properties>"
).reader(),
properties
);
//
// Create the Iterator.
Iterator<Property> iterator = properties.iterator();
//
// Check the set is empty.
assertFalse(
iterator.hasNext()
);