BinaryNode node = getInstance(new ValueNode<>(2.), new ValueNode<>(1.));
ValueNode<Double> res = node.calc(null);
assertTrue(res.getValue().compareTo(2.) == 0);
BinaryNode node2 = getInstance(new ValueNode<>(2), new ValueNode<>(1));
ValueNode<Double> res2 = node2.calc(null);
assertTrue(res2.getValue().compareTo(2.) == 0);
BinaryNode node3 = getInstance(new ValueNode<>(2), new ValueNode<>(3.));
ValueNode<Double> res3 = node3.calc(null);
assertTrue(res3.getValue().compareTo(8.) == 0);