@Test
public void testFindCollection() {

    GeometryFactory factory = new GeometryFactory();
    List<Point> points = Arrays.asList(factory.createPoint(new Coordinate(1.0, 2.0)), factory.createPoint(new Coordinate(10.0, 20.0)));
    Geometry geometry = factory.createMultiPoint(points.toArray(new Point[points.size()]));
    DimensionInfo expResult = DimensionInfo.XY_POINT;
    DimensionInfo result = DimensionInfo.findCollection(points, geometry);
    assertEquals(expResult, result);
}