ProfileManagerImpl implements ProfileManager { @Override public void setThrottleValue(String uuid, int value) { getProfileInstanceManager(uuid).setThrottleValue(value); } ProfileManagerImpl();  ProfileManagerImpl(ProfileContextLocator contextLocator, ProfileSpecDao profileSpecDao,
                              ProfileDiskAction diskAction, SignatureManager signatureManager,
                              DroidGlobalConfig config); @Override ProfileInstance createProfile(Map<SignatureType, SignatureFileInfo> sigFileInfos); @Override ProfileInstance createProfile(Map<SignatureType, SignatureFileInfo> sigFileInfos,
                                         PropertiesConfiguration propertyOverrides); @Override void closeProfile(String profileName); @Override ProfileInstance openProfile(String profileId); @Override void stop(String profileInstance); @Override Future<?> start(String profileId); @Override List<ProfileResourceNode> findProfileResourceNodeAndImmediateChildren(
            String profileId, Long parentId); @Override List<ProfileResourceNode> findRootNodes(String profileId); @Override void setProgressObserver(String profileId,
            ProgressObserver progressObserver); void setProfileSpecDao(ProfileSpecDao profileSpecDao); void setProfileContextLocator(
            ProfileContextLocator profileContextLocator); @Override void setResultsObserver(String profileUuid,
            ProfileResultObserver observer); @Override void updateProfileSpec(String profileId, ProfileSpec profileSpec); @Override ProfileInstance save(final String profileId, final Path destination,
            final ProgressObserver callback); void setProfileDiskAction(ProfileDiskAction profileDiskAction); @Override ProfileInstance open(final Path source, final ProgressObserver observer); List<Format> getAllFormats(String profileId); @Override ReferenceData getReferenceData(String profileId); @Override void setThrottleValue(String uuid, int value); void setSignatureManager(SignatureManager signatureManager); void setConfig(DroidGlobalConfig config);  }
@Test public void testSetThrottleValue() { final String profileId = "abc"; ProfileInstanceManager profileInstanceManager = mock(ProfileInstanceManager.class); ProfileInstance profileInstance = mock(ProfileInstance.class); when(profileInstance.getUuid()).thenReturn(profileId); when(profileContextLocator.getProfileInstance(profileId)).thenReturn(profileInstance); when(profileContextLocator.openProfileInstanceManager(profileInstance)).thenReturn(profileInstanceManager); profileManager.setThrottleValue(profileId, 12345); verify(profileInstanceManager).setThrottleValue(12345); }