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