public void testSEElementVolume() throws SAXException {
AttributeFactory attributeFactory = new AttributeFactory();
final Counts counts = new Counts();
MatsimCountsReader reader = new MatsimCountsReader(counts);
reader.setDoctype("counts_v1.xsd");
reader.startElement("", "counts", "counts", attributeFactory.createCountsAttributes());
reader.startElement("", "count", "count", attributeFactory.createCountAttributes());
reader.startElement("", "volume", "volume", attributeFactory.createVolumeAttributes());
assertEquals("Volume attribute setting failed", 100.0, counts.getCount(Id.create(1, Link.class)).getVolume(1).getValue(), EPSILON);
reader.endElement("", "volume", "volume");
reader.endElement("", "count", "count");
reader.endElement("", "counts", "counts");
}
}