@Test
public void testExtractSimpleScreen() {

	List<Widget> widgets = ExampleScreens.exampleSimple();
	
	ScreenModel model = new ScreenExtractor().extract(widgets);
	
	Assert.assertNotNull(model);
	Assert.assertEquals(1, model.getElements().size());
	
	Assert.assertEquals(FormField.class, model.getElements().get(0).getClass());
	FormField field0 = (FormField) model.getElements().get(0);
	Assert.assertEquals("Ancien", field0.getLabel());
	Assert.assertEquals(2, field0.getFields().size());
	Assert.assertEquals("dfAncTel", field0.getFields().get(0).getId());
	Assert.assertEquals(TextField.class, field0.getFields().get(0).getClass());
	Assert.assertEquals("dfAncTes", field0.getFields().get(1).getId());
	Assert.assertEquals(TextField.class, field0.getFields().get(1).getClass());
}