securityContext.setAuthentications("token", authentications);
Geometry geometry = securityContext.getVisibleArea(LAYER_ID);
Assert.assertNotNull(geometry);
PrecisionModel precisionModel = new PrecisionModel(PrecisionModel.FLOATING);
GeometryFactory geometryFactory = new GeometryFactory(precisionModel, LAYER_SRID);
Coordinate coordinate = new Coordinate();
coordinate.x = coordinate.y = 0.5;
Assert.assertFalse(geometry.contains(geometryFactory.createPoint(coordinate)));
coordinate.x = coordinate.y = 1.5;
Assert.assertFalse(geometry.contains(geometryFactory.createPoint(coordinate)));
coordinate.x = coordinate.y = 2.5;
Assert.assertTrue(geometry.contains(geometryFactory.createPoint(coordinate)));
coordinate.x = coordinate.y = 3.5;
Assert.assertFalse(geometry.contains(geometryFactory.createPoint(coordinate)));
coordinate.x = coordinate.y = 4.5;
Assert.assertFalse(geometry.contains(geometryFactory.createPoint(coordinate)));
Assert.assertFalse(securityContext.isPartlyVisibleSufficient(LAYER_ID));
}