final OldBuilding building = new OldBuilding("Some building");
final Building building = new Building("Some building");
    public void testBuildingInformationConstructor() {        try {            new BuildingInformation(null, "");            fail("Expected a NullPointerException: building information must be relative to a building.");        } catch (NullPointerException ex) {            assertEquals("error.building.cannot.be.null", ex.getMessage());        }        final OldBuilding building = new OldBuilding("Some building");        final BuildingInformation buildingInformation = (BuildingInformation) building.getSpaceInformation();        assertSame(building, buildingInformation.getSpace());        assertEquals("Some building", buildingInformation.getName());        try {            new BuildingInformation(building, null);            fail("Expected a NullPointerException: building name cannot be null.");        } catch (NullPointerException ex) {            assertEquals("error.building.name.cannot.be.null", ex.getMessage());        }        final BuildingInformation newBuildingInformation = new BuildingInformation(building, "Some other name");        assertSame(building, newBuildingInformation.getSpace());        assertSame(building, buildingInformation.getSpace());        assertEquals(new YearMonthDay(), buildingInformation.getValidUntil());        assertNull(newBuildingInformation.getValidUntil());    }