### Question:
GeometryCalculator { public boolean anyAtFullContainment(Collection<? extends AbstractTileGeometry<?>> geometries, GeographicBoundingBox boundingBox) { boolean hasAFullContainment = false; for (AbstractTileGeometry<?> geometry : geometries) { if (geometry.getBounds() instanceof GeographicBoundingBox) { hasAFullContainment = boundingBox.contains((GeographicBoundingBox)geometry.getBounds()); if (hasAFullContainment) { break; } } } return hasAFullContainment; }  boolean anyAtFullContainment(Collection<? extends AbstractTileGeometry<?>> geometries, GeographicBoundingBox boundingBox); List<AbstractTileGeometry<?>> getContainingGeometries(Collection<? extends AbstractTileGeometry<?>> geometries, GeographicBoundingBox boundingBox); static boolean overlaps(AbstractTileGeometry<?> geometry, GeographicBoundingBox boundingBox);  }### Answer:
@Test public void testAnyAtFullContainment() { EasyMockSupport support = new EasyMockSupport(); TileRenderProperties props = support.createNiceMock(TileRenderProperties.class); support.replayAll(); GeographicBoundingBox boundingBox = new GeographicBoundingBox(LatLonAlt.createFromDegrees(0, 0), LatLonAlt.createFromDegrees(10, 10)); GeographicBoundingBox outside = new GeographicBoundingBox(LatLonAlt.createFromDegrees(5, -5), LatLonAlt.createFromDegrees(10, .0001)); GeographicBoundingBox intersects = new GeographicBoundingBox(LatLonAlt.createFromDegrees(5, -5), LatLonAlt.createFromDegrees(10, 15)); GeographicBoundingBox contained = new GeographicBoundingBox(LatLonAlt.createFromDegrees(2, 2), LatLonAlt.createFromDegrees(7, 7)); TileGeometry.Builder<GeographicPosition> builder = new Builder<>(); builder.setBounds(outside); TileGeometry outSideGeom = new TileGeometry(builder, props, null); builder = new Builder<>(); builder.setBounds(intersects); TileGeometry intersectsGeom = new TileGeometry(builder, props, null); builder = new Builder<>(); builder.setBounds(contained); TileGeometry containedGeom = new TileGeometry(builder, props, null); List<TileGeometry> trueGeoms = New.list(outSideGeom, intersectsGeom, containedGeom); List<TileGeometry> falseGeoms = New.list(outSideGeom, intersectsGeom); GeometryCalculator calc = new GeometryCalculator(); assertTrue(calc.anyAtFullContainment(trueGeoms, boundingBox)); assertFalse(calc.anyAtFullContainment(falseGeoms, boundingBox)); support.verifyAll(); }