ServiceCatalogHandler implements Handler<ServiceCatalogConfig> { public boolean canHandle(Class<? extends Configuration> type) { return type.equals(ServiceCatalogConfig.class) || type.equals(EditableServiceCatalogConfig.class); } ServiceCatalogHandler();  ServiceCatalogHandler(Resources resources); @Override int order(); @Override String getKey(); @Override void handle(ServiceCatalogConfig config); boolean canHandle(Class<? extends Configuration> type);  }
@Test public void shouldAcceptServiceCatalogConfig() { ServiceCatalogHandler generator = new ServiceCatalogHandler(); assertTrue(generator.canHandle(ServiceCatalogConfig.class)); }
@Test public void shouldAcceptEditableServiceCatalogConfig() { ServiceCatalogHandler generator = new ServiceCatalogHandler(); assertTrue(generator.canHandle(EditableServiceCatalogConfig.class)); }
@Test public void shouldNotAcceptKubernetesConfig() { ServiceCatalogHandler generator = new ServiceCatalogHandler(); assertFalse(generator.canHandle(BaseConfig.class)); }