LinearRing shell = new LinearRing(points, factory);
LinearRing[] holes = new LinearRing[0];
// holes[0] = shell;
Polygon polygon = new Polygon(shell, holes, factory);
List<Person> persons = dao.findWithinPolygon(polygon);
Assert.assertNotNull(persons);
Assert.assertFalse(persons.isEmpty());
Assert.assertTrue(persons.size() == 11);
dao.closeEntityManager();
dao.createEntityManager();
holes = new LinearRing[1];
holes[0] = shell;
polygon = new Polygon(shell, holes, factory);
persons = dao.findWithinPolygon(polygon);
Assert.assertNotNull(persons);
Assert.assertFalse(persons.isEmpty());
Assert.assertTrue(persons.size() == 8);
dao.closeEntityManager();