node =
getInstance(new ListNode(toList(new MultNode(new ValueNode<>(2),
new ValueNode<>(-2)), new MultNode(new ValueNode<>(2),
new ValueNode<>(-3)), new MultNode(new ValueNode<>(1),
new ValueNode<>(1)))));
res = node.calc(null);
assertTrue(res.getValue().compareTo(1) == 0);
}
private List<INode> toList(Node... nodes) {
ArrayList<INode> result = new ArrayList<>();