}
public void testEqualNodesReordered() {
final UniqueIdSupplier ids = new UniqueIdSupplier("Node");
final PortfolioNodeEquivalenceMapper mapper = new PortfolioNodeEquivalenceMapper();
final PortfolioNode a = createNodeA(ids, false, false, 2);
final PortfolioNode b = createNodeA(ids, true, false, 2);
final Map<UniqueId, UniqueId> map = mapper.getEquivalentNodes(a, b);
assertEquals(map.size(), 4);
assertEquals(map.get(UniqueId.of("Node", "1")), UniqueId.of("Node", "5"));
assertEquals(map.get(UniqueId.of("Node", "2")), UniqueId.of("Node", "8"));
assertEquals(map.get(UniqueId.of("Node", "3")), UniqueId.of("Node", "6"));