public void test_performSpatialPoolingOnRegion() throws IOException {
Region region = new Region("region", 8, 8, 4, 50, 1);
this.spatialPooler.changeRegion(region);
Retina retina = new Retina(66, 66);
AbstractSensorCellsToRegionConnect connectType2 = new SensorCellsToRegionRectangleConnect();
connectType2.connect(retina.getVisionCells(), region, 2, 2);
retina.seeBMPImage("2.bmp");
this.spatialPooler.performPooling();
Set<ColumnPosition> columnActivityAfterSeeingImage2 = this.spatialPooler
.getActiveColumnPositions();
assertEquals(5, columnActivityAfterSeeingImage2.size());