@Mock
private BundleContext context;
@Mock
- private ServiceRegistration registration;
+ private ServiceRegistration<?> registration;
@Before
public void setUp() throws Exception {
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();
}