BinaryNode node = getInstance(new ValueNode<>(2.), new ValueNode<>(1.));
ValueNode<Double> res = node.calc(null);
assertTrue(res.getValue().compareTo(2.) == 0);
node = getInstance(new ValueNode<>(2), new ValueNode<>(1));
ValueNode<Integer> res2 = node.calc(null);
assertTrue(res2.getValue().compareTo(2) == 0);
node = getInstance(new ValueNode<>(2), new ValueNode<>(4));
res2 = node.calc(null);
assertTrue(res2.getValue().compareTo(0) == 0);