}
@Test
public void testNewTwoTextsRemoveOneOnePictureRemains() {
IViewText v2 = (IViewText)View2DTK.getFactory().createView(ShapeFactory.createText(ShapeFactory.createPoint(), "aaa")); //$NON-NLS-1$
assertEquals(2, FlyweightThumbnail.images().size());
FlyweightThumbnail.notifyImageFlushed(viewTxt, ((IText)viewTxt.getShape()).getText(), ((IText)viewTxt.getShape()).getLineColour());
assertEquals(1, FlyweightThumbnail.images().size());
Option<Tuple4<Image,Set<IViewText>,String,String>> optTuple = FlyweightThumbnail.images().get(((IText)v2.getShape()).getLineColour()+((IText)v2.getShape()).getText());
assertTrue(optTuple.isDefined());
assertEquals(1, optTuple.get()._2().size());
assertEquals(v2, optTuple.get()._2().last());
}