Enumeration<?> propertyNames = props.propertyNames();
assertThat((String)propertyNames.nextElement(), equalTo("Foo"));
assertThat((String)propertyNames.nextElement(), equalTo("Bar"));
assertThat((String)propertyNames.nextElement(), equalTo("Baz"));
Iterator<String> iterator = props.stringPropertyNames().iterator();
assertThat(iterator.next(), equalTo("Foo"));
assertThat(iterator.next(), equalTo("Bar"));
assertThat(iterator.next(), equalTo("Baz"));
}