DDMStorageAdapterTrackerImpl implements DDMStorageAdapterTracker { @Deactivate protected void deactivate() { ddmStorageAdapterServiceTrackerMap.close(); }  @Override DDMStorageAdapter getDDMStorageAdapter(String type); @Override Set<String> getDDMStorageAdapterTypes();  }
@Test public void testDeactivate() { DDMStorageAdapterTrackerImpl ddmStorageAdapterTrackerImpl = new DDMStorageAdapterTrackerImpl(); ddmStorageAdapterTrackerImpl.ddmStorageAdapterServiceTrackerMap = _ddmStorageAdapterServiceTrackerMap; ddmStorageAdapterTrackerImpl.deactivate(); Mockito.verify( _ddmStorageAdapterServiceTrackerMap, Mockito.times(1) ).close(); }