ReportedBean { Collection<ReportedBeanAttribute> getAttributes() { return attributes.values(); } private  ReportedBean(Collection<ReportedBeanAttribute> attributes, Collection<PrometheusBeanAttribute> prometheusAttributes);   }
@Test(dataProvider = "fixtures") public void testGetterAttributeInfo(String attribute, boolean isIs, Object[] values, Class<?> clazz) { for (Object t : objects) { String attributeName = toFeatureName(attribute, t); Collection<ReportedBeanAttribute> attributes = getAttributes(t); ReportedBeanAttribute attributeInfo = getAttributeInfo(attributes, attributeName); assertNotNull(attributeInfo, "AttributeInfo for " + attributeName); assertEquals(attributeInfo.getName(), attributeName, "Attribute Name for " + attributeName); } }
@Test public void testNotReportedAttributeInfo() { for (Object t : objects) { Collection<ReportedBeanAttribute> attributes = getAttributes(t); String attributeName = toFeatureName("NotReported", t); ReportedBeanAttribute attributeInfo = getAttributeInfo(attributes, attributeName); assertNull(attributeInfo, "AttributeInfo for " + attributeName); } }