Clara { public static Component create(InputStream xml) { return create(xml, null, new AttributeFilter[0]); }  static ClaraBuilder build(); static Component create(InputStream xml); static Component create(InputStream xml,
            ComponentProvider... componentProviders); static Component create(InputStream xml, Object controller,
            AttributeFilter... attributeFilters); static Component create(InputStream xml, Object controller,
            List<ComponentProvider> componentProviders,
            AttributeFilter... attributeFilters); static Component create(String xmlClassResourceFileName,
            Object controller, AttributeFilter... attributeFilters); static Component create(String xmlClassResourceFileName,
            Object controller, List<ComponentProvider> componentProviders,
            AttributeFilter... attributeFilters); static Component findComponentById(Component root, String componentId); static Component findComponentById(Component root, String idPrefix,
            String componentId);  }
@Test public void testCreateMethod_usingRelativeFilenameInClasspath_xmlReadCorrectly() { Component component = Clara.create( "xml-file-for-classpath-testing.xml", new EmptyController()); assertEquals(Button.class, component.getClass()); }
@Test public void testCreateMethod_usingAbsoluteFilenameInClasspath_xmlReadCorrectly() { Component component = Clara.create( "/org/vaadin/teemu/clara/xml-file-for-classpath-testing.xml", new EmptyController()); assertEquals(Button.class, component.getClass()); }
@Test(expected = LayoutInflaterException.class) public void testCreateMethod_usingNonExistingFilenameInClasspath_exceptionThrown() { Clara.create("non-existing-file.xml", controller); }