@Test
public void testFind_List_Geometry() {

    List<Coordinate> coordinates = Arrays.asList(new CoordinateXY(1.0, 2.0), new CoordinateXY(10.0, 20.0));
    GeometryFactory factory = new GeometryFactory();
    Geometry geometry = factory.createLineString(coordinates.toArray(new Coordinate[coordinates.size()]));
    DimensionInfo expResult = DimensionInfo.XY_LINESTRING;
    DimensionInfo result = DimensionInfo.find(coordinates, geometry);
    assertEquals(expResult, result);
}