public void testLeafTree() {
QuadTree tree = new QuadTree(0, 0, 10, 10);
tree.addNode(new TestNode(1, 1));
BarnesHut barnesHut = new BarnesHut(new TestForce());
ForceVector f = barnesHut.calculateForce(tree, tree);
assertNotNull(f);
assertEquals(f.x(), 1, eps);
assertEquals(f.y(), 1, eps);
}
}