/**
* Tests setters and getters.
*/
public void testSetters() {
Mock mockModel = mock(UmlModel.class);
TinyUmlProject project = new TinyUmlProject((UmlModel) mockModel.proxy());
assertEquals(mockModel.proxy(), project.getModel());
assertEquals(0, project.getOpenDiagrams().size());
Mock mockDiagram0 = mock(UmlDiagram.class);
Mock mockDiagram1 = mock(UmlDiagram.class);
project.addOpenDiagram((UmlDiagram) mockDiagram0.proxy());
project.addOpenDiagram((UmlDiagram) mockDiagram1.proxy());
assertEquals(2, project.getOpenDiagrams().size());
assertEquals(mockDiagram0.proxy(), project.getOpenDiagrams().get(0));
assertEquals(mockDiagram1.proxy(), project.getOpenDiagrams().get(1));
}