Closed nested JSON writers
[netconf.git] / netconf / netconf-util / src / test / java / org / opendaylight / netconf / util / osgi / NetconfConfigurationActivatorTest.java
index 7ace84b7af9c8ab99d810a2c0fac1b60c64a462a..70fadc231415642f36790d2b17b3e59610cdefab 100644 (file)
@@ -30,7 +30,7 @@ public class NetconfConfigurationActivatorTest {
     @Mock
     private BundleContext context;
     @Mock
-    private ServiceRegistration registration;
+    private ServiceRegistration<?> registration;
 
     @Before
     public void setUp() throws Exception {
@@ -46,7 +46,7 @@ public class NetconfConfigurationActivatorTest {
         activator.start(context);
         final Dictionary<String, String> props = new Hashtable<>();
         props.put(Constants.SERVICE_PID, "netconf");
-        verify(context).registerService(eq(ManagedService.class), eq(NetconfConfiguration.getInstance()), eq(props));
+        verify(context).registerService(eq(ManagedService.class), any(NetconfConfiguration.class), eq(props));
         activator.stop(context);
         verify(registration).unregister();
     }