public class TestNodeFactory extends TestCase {
public void testCreateNode() {
NodeFactory nf = new NodeFactory();
AbsNode n = nf.createNode(AbsNode.class, new ValueNode<>(-2));
ValueNode<Double> resAbs = n.calc(null);
assertTrue(resAbs.getValue().compareTo(2.) == 0);