@Test
public void testMarshal() throws Exception {

    ComponentLibrary library = new ComponentLibrary();
    ConverterModel converterModel = new ConverterModel(FacesId.parseId("my_converter"));
    converterModel.setTargetClass(ClassName.parseName(Object.class.getName()));
    library.getConverters().add(converterModel);
    // Jaxb marshaling
    StringWriter facesConfig = generateFacesConfig(library);
    // Checks
    checkXmlStructure(facesConfig);
    validateXml(facesConfig);
}