protected JsonNode jsonLinks(List<UiSynthLink> links) {
        return collateSynthLinks(links);
    }
@Test
    public void encodeSynthLinks() {
        title("encodeSynthLinks()");
        ArrayNode array = (ArrayNode) t2.jsonLinks(createSynthLinks());
        print(array);

        assertEquals("wrong size", 2, array.size());
        ObjectNode first = (ObjectNode) array.get(0);
        ObjectNode second = (ObjectNode) array.get(1);

        boolean firstIsAB = first.get("id").asText().equals("rA~rB");
        if (firstIsAB) {
            validateSynthLinks(first, second);
        } else {
            validateSynthLinks(second, first);
        }
    }