Merge "BUG 907 distinguish augmented nodes"
[controller.git] / opendaylight / md-sal / sal-clustering-commons / src / test / java / org / opendaylight / controller / cluster / datastore / node / utils / NodeIdentifierFactoryTest.java
1 /*
2  *
3  *  Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
4  *
5  *  This program and the accompanying materials are made available under the
6  *  terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  *  and is available at http://www.eclipse.org/legal/epl-v10.html
8  *
9  */
10
11 package org.opendaylight.controller.cluster.datastore.node.utils;
12
13 import junit.framework.Assert;
14 import org.junit.Test;
15 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
16
17 public class NodeIdentifierFactoryTest {
18
19   @Test
20   public void validateAugmentationIdentifier() {
21     YangInstanceIdentifier.PathArgument argument =
22         NodeIdentifierFactory
23             .getArgument("AugmentationIdentifier{childNames=[(urn:opendaylight:flow:table:statistics?revision=2013-12-15)flow-table-statistics]}");
24
25     Assert
26         .assertTrue(argument instanceof YangInstanceIdentifier.AugmentationIdentifier);
27
28
29   }
30
31 }