ProductionProfileStrategy implements ProfileVersionReader { @Override public Map<String, String> getDistribution(final String name) { final Element property = this.getPropertyElement(name); if(property == null) { return null; } final Map<String, String> distribution = new HashMap<String, String>(); final List<?> items = property.elements(); if (items.isEmpty()) { return null; } for (Object o : items) { final Element e = (Element) o; final String key = e.attributeValue("id"); final String value = e.attributeValue("value"); distribution.put(key, value); } return distribution; }  @Override String getCollectionName(); @Override String getObjectsCount(); @Override String getCollectionSize(); @Override String getObjectsMaxSize(); @Override String getObjectsMinSize(); @Override String getObjectsAvgSize(); @Override Map<String, String> getDistribution(final String name); @Override void setStream(final InputStream is);  }
@Test public void shouldGetDistribution() throws Exception { Map<String, String> distribution = this.reader.getDistribution("format"); assertNotNull(distribution); assertFalse(distribution.keySet().isEmpty()); }