DataStore<SimpleNDimPoint> ds = getDatastoreInstance(4);
//ds.setWindow(2f,2f,2f,2f);
Collection<SimpleNDimPoint> firstCulster = new ArrayList<SimpleNDimPoint>();
firstCulster.add(new SimpleNDimPoint(1f, 2f, 3f, 4f));
firstCulster.add(new SimpleNDimPoint(1f, 2f, 4f, 4f));
firstCulster.add(new SimpleNDimPoint(1f, 3f, 3f, 4f));
firstCulster.add(new SimpleNDimPoint(1f, 1f, 4f, 4f));
firstCulster.add(new SimpleNDimPoint(1f, 1f, 4f, 4f));
firstCulster.add(new SimpleNDimPoint(1f, 2f, 3f, 5f));
firstCulster.add(new SimpleNDimPoint(2f, 2f, 3f, 4f));
ds.addAll(firstCulster);
Collection<SimpleNDimPoint> secondCulster = new ArrayList<SimpleNDimPoint>();
secondCulster.add(new SimpleNDimPoint(20f, 20f, 30f, 70f));
secondCulster.add(new SimpleNDimPoint(20f, 2f, 4f, 5f));
secondCulster.add(new SimpleNDimPoint(4f, 60f, 2f, 4f));
secondCulster.add(new SimpleNDimPoint(6f, 20f, 7f, 3f));
secondCulster.add(new SimpleNDimPoint(40f, 1f, 2f, 6f));
secondCulster.add(new SimpleNDimPoint(140f, 2f, 3f, 7f));
ds.addAll(secondCulster);
Collection<SimpleNDimPoint> withinWindow = ds.removeWithinWindow(new SimpleNDimPoint(1f, 2f, 3f, 4f),new SimpleNDimPoint(2f,2f,2f,2f));
assertTrue(withinWindow.containsAll(firstCulster) && firstCulster.containsAll(withinWindow));
List asList = ds.asList();