DummyReader implements ProfileVersionReader { public String getObjectsCount() { final Element collection = this.getCollectionElement(); return this.getAttributeValue(collection, "elements"); }  void setStream(final InputStream is); String getCollectionName(); String getObjectsCount(); String getCollectionSize(); String getObjectsMaxSize(); String getObjectsMinSize(); String getObjectsAvgSize(); Map<String, String> getDistribution(final String name);  }
@Test public void shouldObtainObjectsCount() throws Exception { final String count = this.reader.getObjectsCount(); Assert.assertEquals("502", count); }