GraphicalComponentProvider extends AbstractComponentProvider { @Override public Collection<ComponentTypeInfo> getComponentTypes() { return Collections.singleton( new ComponentTypeInfo(bundle.getString("Component_Name"), bundle.getString("Component_Description"), GraphicalComponent.class)); } GraphicalComponentProvider(); @Override Collection<ViewInfo> getViews(String componentTypeId); @Override Collection<PolicyInfo> getPolicyInfos(); @Override Collection<ComponentTypeInfo> getComponentTypes(); @Override T getAsset(TypeInfo<?> typeInfo, Class<T> assetClass);  }
@Test public void testComponentTypeInfos() { boolean foundGraphicalComponent = false; for (ComponentTypeInfo info : provider.getComponentTypes()) { if (info.getComponentClass().equals(GraphicalComponent.class)){ foundGraphicalComponent = true; Assert.assertTrue(info.isCreatable()); } } Assert.assertTrue(foundGraphicalComponent); }