Fix license header violations in netconf
[controller.git] / opendaylight / netconf / config-netconf-connector / src / test / java / org / opendaylight / controller / netconf / confignetconfconnector / ServiceTrackerTest.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.controller.netconf.confignetconfconnector;
10
11 import static org.junit.Assert.assertEquals;
12
13 import org.junit.Test;
14 import org.opendaylight.controller.netconf.confignetconfconnector.mapping.config.Services;
15 import org.opendaylight.controller.netconf.confignetconfconnector.mapping.config.Services.ServiceInstance;
16
17 public class ServiceTrackerTest {
18
19     @Test
20     public void test() {
21         Services.ServiceInstance serviceInstance = new ServiceInstance("module", "serviceInstance");
22
23         String string = serviceInstance.toString();
24
25         Services.ServiceInstance serviceInstance2 = Services.ServiceInstance.fromString(string);
26
27         assertEquals(serviceInstance, serviceInstance2);
28     }
29
30 }