final OldBuilding building = new OldBuilding("Some building");
final Building building = new Building("Some building");
    public void testSetName() {        final OldBuilding building = new OldBuilding("Some building");        final BuildingInformation buildingInformation = (BuildingInformation) building.getSpaceInformation();        try {            buildingInformation.setName(null);            fail("Expected a NullPointerException: building name cannot be null.");        } catch (NullPointerException ex) {            assertEquals("error.building.name.cannot.be.null", ex.getMessage());        }        buildingInformation.setName("Some other name");        assertEquals("Some other name", buildingInformation.getName());    }