@Test
    public void testJoinWithSameInput() throws ParseException {
        Tensor x = evaluate("tensor(d0[2],d1[3]):[1,2,3,4,5,6]");
        String opName = "mul";

        Context context = new MapContext(DoubleValue.NaN);
        List<IntermediateOperation> inputs = new ArrayList<>();
        inputs.add(addInput(inputs, context, x, "x"));
        IntermediateOperation op = mapOperation(opName, inputs, modelName, opName, createAttributes().build(), 0);
        optimizeAndRename(opName, op);

        Tensor result = evaluate(op);
        Tensor expected = evaluate("tensor(d0[2],d1[3]):[1,4,9,16,25,36]");
        assertEquals(expected, result);
        assertEquals(expected.type(), result.type());
    }
Unit tests for ONNX operators. The number on the test reflects the minimum
opset number for the operations tested.

@author lesters
model-integration/src/test/java/ai/vespa/rankingexpression/importer/onnx/OnnxOperationsTestCase.java