@Test
public void testCluster() throws Exception {

  DBSCANClusterer clusterer = new DBSCANClusterer(1, 1);
  List<List<double[]>> cluster = clusterer.cluster(DATA);
  assertNotNull(cluster);
  assertEquals(2, cluster.size());
  DBSCANClusterer clusterer2 = new DBSCANClusterer(1, 0);
  List<List<double[]>> cluster2 = clusterer2.cluster(DATA);
  assertNotNull(cluster2);
  assertEquals(5, cluster2.size());
  DBSCANClusterer clusterer3 = new DBSCANClusterer(1, 0);
  List<List<double[]>> cluster3 = clusterer3.cluster(DATA_2);
  assertNotNull(cluster3);
  assertEquals(4, cluster3.size());
}