### Question:
BoundingBoxModel extends Observable { public void setBoundingBox(Collection<LineSegment2d> boundingBox) { myBoundingBox.clear(); myBoundingBox.addAll(boundingBox); setChanged(); notifyObservers(BOUNDING_BOX_PROP); }  Collection<LineSegment2d> getBoundingBox(); void setBoundingBox(Collection<LineSegment2d> boundingBox); static final String BOUNDING_BOX_PROP; }### Answer:
@Test public void testSetBoundingBox() { BoundingBoxModel model = new BoundingBoxModel(); List<LineSegment2d> boundingBox = New.list(new LineSegment2d(new Vector2d(0, 0), new Vector2d(10, 10))); EasyMockSupport support = new EasyMockSupport(); Observer observer = createObserver(support, model); support.replayAll(); model.addObserver(observer); model.setBoundingBox(boundingBox); assertEquals(boundingBox.get(0), model.getBoundingBox().iterator().next()); support.verifyAll(); }