@@ -0,0 +1,1335 @@
+/*%0A * Copyright (c) 2017 Pantheon Technologies s.r.o. and others.  All rights reserved.%0A *%0A * This program and the accompanying materials are made available under the%0A * terms of the Eclipse Public License v1.0 which accompanies this distribution,%0A * and is available at http://www.eclipse.org/legal/epl-v10.html%0A */%0Apackage org.opendaylight.yangtools.yang.common;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport java.util.Optional;%0Aimport org.junit.Test;%0A%0Apublic class YangVersionTest %7B%0A    @Test%0A    public void testGetReference() %7B%0A        assertEquals(%22RFC6020%22, YangVersion.VERSION_1.getReference());%0A        assertEquals(%22RFC7950%22, YangVersion.VERSION_1_1.getReference());%0A    %7D%0A%0A    @Test%0A    public void testParse() %7B%0A        assertEquals(Optional.empty(), YangVersion.parse(%22%22));%0A        assertEquals(Optional.empty(), YangVersion.parse(%221.%22));%0A        assertEquals(Optional.of(YangVersion.VERSION_1), YangVersion.parse(%221%22));%0A        assertEquals(Optional.of(YangVersion.VERSION_1_1), YangVersion.parse(%221.1%22));%0A    %7D%0A%0A    @Test(expected = NullPointerException.class)%0A    public void testParseNull() %7B%0A        YangVersion.parse(null);%0A    %7D%0A%0A    @Test%0A    public void testToString() %7B%0A        assertEquals(%221%22, YangVersion.VERSION_1.toString());%0A        assertEquals(%221.1%22, YangVersion.VERSION_1_1.toString());%0A    %7D%0A%7D%0A

Add YangVersion test