2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
9 package org.opendaylight.controller.netconf.confignetconfconnector;
11 import org.junit.Test;
12 import org.opendaylight.controller.netconf.confignetconfconnector.mapping.config.Services;
13 import org.opendaylight.controller.netconf.confignetconfconnector.mapping.config.Services.ServiceInstance;
15 import static org.junit.Assert.assertEquals;
17 public class ServiceTrackerTest {
21 Services.ServiceInstance serviceInstance = new ServiceInstance("module", "serviceInstance");
23 String string = serviceInstance.toString();
25 Services.ServiceInstance serviceInstance2 = Services.ServiceInstance.fromString(string);
27 assertEquals(serviceInstance, serviceInstance2);