@Test
public void testDeleteDuplicate4DifferentNodes() {

  NodesInfo nodes = new NodesInfo();
  NodeInfo nodeInfo1 = new NodeInfo();
  nodeInfo1.setId(NODE1);
  nodes.add(nodeInfo1);
  NodeInfo nodeInfo2 = new NodeInfo();
  nodeInfo2.setId(NODE2);
  nodes.add(nodeInfo2);
  NodeInfo nodeInfo3 = new NodeInfo();
  nodeInfo3.setId(NODE3);
  nodes.add(nodeInfo3);
  NodeInfo nodeInfo4 = new NodeInfo();
  nodeInfo4.setId(NODE4);
  nodes.add(nodeInfo4);
  NodesInfo result =
      RouterWebServiceUtil.deleteDuplicateNodesInfo(nodes.getNodes());
  Assert.assertNotNull(result);
  Assert.assertEquals(4, result.getNodes().size());
  List<String> nodesIds = new ArrayList<String>();
  for (NodeInfo node : result.getNodes()) {
    nodesIds.add(node.getNodeId());
  }
  Assert.assertTrue(nodesIds.contains(NODE1));
  Assert.assertTrue(nodesIds.contains(NODE2));
  Assert.assertTrue(nodesIds.contains(NODE3));
  Assert.assertTrue(nodesIds.contains(NODE4));
}