}
@Test
public void testConstructors() {
IText txt = ShapeFactory.createText();
assertNotNull(txt.getText());
assertTrue(txt.getText().length()>0);
txt = ShapeFactory.createText();
assertNotNull(txt.getText());
assertTrue(txt.getText().length()>0);
txt = ShapeFactory.createText(ShapeFactory.createPoint(), "coucou"); //$NON-NLS-1$
assertNotNull(txt.getText());
assertTrue(txt.getText().length()>0);
txt = ShapeFactory.createText(ShapeFactory.createPoint(), ""); //$NON-NLS-1$
assertNotNull(txt.getText());
assertTrue(txt.getText().length()>0);
txt = ShapeFactory.createText(ShapeFactory.createPoint(), null);
assertNotNull(txt.getText());
assertTrue(txt.getText().length()>0);
txt = ShapeFactory.createText(null, "aa"); //$NON-NLS-1$
assertEquals(ShapeFactory.createPoint(), txt.getPosition());
txt = ShapeFactory.createText(ShapeFactory.createPoint(0, Double.NEGATIVE_INFINITY), "aa"); //$NON-NLS-1$
assertEquals(ShapeFactory.createPoint(), txt.getPosition());
}