SecuredDoor extends SecurableItem { public Sensor getSensor() { return sensor; } SecuredDoor(String location); Sensor getSensor(); String getLocationName();  }
@Test public void testAccessPage() { SecuredDoor door = new SecuredDoor("front door"); Sensor sensor = door.getSensor(); assertEquals("auto-triggered", sensor.getStatus()); }