@Test
public void testBadData() {

  Attribute attribute =
      new AttributeImpl(
          FIELD, Collections.singletonList("POLYGON (( x 0, 10 0, 10 10, 0 10, 0 0))"));
  Optional<String> optionalWkt =
      GeometryUtility.createUnionOfGeometryAttribute(
          wktReader, wktWriter, attribute, new GeometryOperator.Context());
  assertThat(optionalWkt.isPresent(), is(false));
}