### Question:
GeometryStateFactory implements AccumulatorStateFactory<GeometryState> { @Override public GeometryState createSingleState() { return new SingleGeometryState(); }  @Override GeometryState createSingleState(); @Override Class<? extends GeometryState> getSingleStateClass(); @Override GeometryState createGroupedState(); @Override Class<? extends GeometryState> getGroupedStateClass();  }### Answer:
@Test public void testCreateSingleStateEmpty() { GeometryState state = factory.createSingleState(); assertNull(state.getGeometry()); assertEquals(0, state.getEstimatedSize()); }
@Test public void testCreateSingleStatePresent() { GeometryState state = factory.createSingleState(); state.setGeometry(OGCGeometry.fromText("POINT (1 2)")); assertEquals(OGCGeometry.fromText("POINT (1 2)"), state.getGeometry()); assertTrue(state.getEstimatedSize() > 0, "Estimated memory size was " + state.getEstimatedSize()); }