@Test
public void EntityHasSpatialContextFactory() {

	boolean jts_lib_ready = false;
	try {
		Class.forName("com.vividsolutions.jts.geom.Geometry");
		jts_lib_ready = true;
	} catch (ClassNotFoundException e) {
		Log.warn(this,
				"JTS lib is not ready in classpath! An exception should be thrown later on!");
	}
	EntityDefinitionAssembler emAssembler = new EntityDefinitionAssembler();
	emAssembler.open(null, spec3, null);
	if (jts_lib_ready) {
		assertEquals("org.locationtech.spatial4j.context.jts.JtsSpatialContext",
				SpatialQuery.ctx.getClass().getName());
	} else {
		assertEquals("org.locationtech.spatial4j.context.SpatialContext",
				SpatialQuery.ctx.getClass().getName());
	}
}