// XML element
Element element = createShowersLimitElement();
// Extract
LimitExtractor extractor = LimitExtractorFactory.SHOWERS;
ShowersLimit limit = (ShowersLimit) extractor.extract(element);
// Test
assertEquals(1234, limit.getMaximumShowers());
}