protected void test1(Clusterer<SimpleNDimPoint> instance)
{
System.out.println("doClustering");
DataStore<SimpleNDimPoint> ds = new MultiDimMapDataStore<SimpleNDimPoint>(2);
Set<SimpleNDimPoint> firstCulster = new HashSet<SimpleNDimPoint>();
firstCulster.add(new SimpleNDimPoint(1.0F, 2.0F));
firstCulster.add(new SimpleNDimPoint(1.1F, 2.1F));
firstCulster.add(new SimpleNDimPoint(1.2F, 2.2F));
firstCulster.add(new SimpleNDimPoint(1.3F, 2.3F));
firstCulster.add(new SimpleNDimPoint(1.4F, 1.9F));
firstCulster.add(new SimpleNDimPoint(1.0F, 1.8F));
ds.addAll(firstCulster);
Set<SimpleNDimPoint> secondCulster = new HashSet<SimpleNDimPoint>();
secondCulster.add(new SimpleNDimPoint(5.0F, 4.0F));
secondCulster.add(new SimpleNDimPoint(5.1F, 4.0F));
secondCulster.add(new SimpleNDimPoint(5.2F, 4.0F));
secondCulster.add(new SimpleNDimPoint(5.3F, 4.0F));
secondCulster.add(new SimpleNDimPoint(5.4F, 4.0F));
ds.addAll(secondCulster);
instance.setDataStore(ds);
instance.doClustering();
assertTrue(CollectionUtls.checkInCollectionEquality(instance.getClusters(), Arrays.asList(firstCulster, secondCulster)));
}