public Node() {}
@Test
    public void testNode() {
        Node node = new Node();
        node.setMetadata(new HashMap<>());
        Assertions.assertEquals(new HashMap<>(), node.getMetadata());

        Node.Endpoint endpoint = node.createEndpoint("127.0.0.1", 80, "get");
        node.setControl(endpoint);
        Assertions.assertEquals(endpoint, node.getControl());

        node.setTransaction(endpoint);
        Assertions.assertEquals(endpoint, node.getTransaction());

        Node.Endpoint endpoint1 = new Node.Endpoint();
        endpoint1.setHost("127.0.0.1");
        Assertions.assertEquals("127.0.0.1", endpoint1.getHost());
        endpoint1.setPort(80);
        Assertions.assertEquals(80, endpoint1.getPort());
        Assertions.assertEquals("127.0.0.1:80", endpoint1.createAddress());
        Assertions.assertEquals("Endpoint{host='127.0.0.1', port=80}", endpoint1.toString());
        Assertions.assertEquals("Endpoint{host='127.0.0.1', port=80}", new Node.Endpoint("127.0.0.1", 80).toString());

    }