final OldBuilding building = new OldBuilding("building1");
final Building building = new Building("building1");
    public void testSetSpace() {        final OldBuilding building = new OldBuilding("building1");        final Floor floor = new Floor(building);        final FloorInformation floorInformation = floor.getSpaceInformation();        try {            floorInformation.setSpace(null);            fail("Expected a NullPointerException: floor information must be relative to a floor.");        } catch (NullPointerException ex) {            assertEquals("error.floor.cannot.be.null", ex.getMessage());        }        try {            floorInformation.setSpace(floor);            fail("Expected a DomainException: cannot change the floor of a floor information.");        } catch (DomainException ex) {            assertEquals("error.cannot.change.floor", ex.getMessage());        }        try {            floorInformation.setSpace(new Floor(building));            fail("Expected a DomainException: cannot change the floor of a floor information.");        } catch (DomainException ex) {            assertEquals("error.cannot.change.floor", ex.getMessage());        }        try {            floorInformation.setSpace(new SpaceImpl());            fail("Expected a DomainException: cannot associate a floor information with a space that is not a floor.");        } catch (DomainException ex) {            assertEquals("error.incompatible.space", ex.getMessage());        }    }