### Question:
BlueprintStateServiceImpl implements BlueprintStateService, BlueprintListener { @Override public String[] getBundleMissDependencies( long bundleId ) { BlueprintEvent blueprintEvent = states.get( bundleId ); if ( blueprintEvent == null ) { return null; } return blueprintEvent.getDependencies(); } BlueprintStateServiceImpl( BundleContext bundleContext ); @Override Boolean isBlueprintLoaded( long bundleId ); @Override Boolean isBlueprintFailed( long bundleId ); @Override Boolean isBlueprintTryingToLoad( long bundleId ); @Override Boolean hasBlueprint( long bundleId ); @Override void blueprintEvent( BlueprintEvent blueprintEvent ); @Override BundleState getBundleState( long bundleId ); @Override String[] getBundleMissDependencies( long bundleId ); @Override Throwable getBundleFailureCause( long bundleId );  }### Answer:
@Test public void testGetBundleMissDependencies() { assertDependencies( blueprintStateServiceImpl.getBundleMissDependencies( MOCK_BUNDLE_UNKNOWN_ID ), MOCK_BUNDLE_NO_DEPENDENCIES ); assertDependencies( blueprintStateServiceImpl.getBundleMissDependencies( MOCK_BUNDLE_STARTING_ID ), MOCK_BUNDLE_NO_DEPENDENCIES ); assertDependencies( blueprintStateServiceImpl.getBundleMissDependencies( MOCK_BUNDLE_ACTIVE_ID ), MOCK_BUNDLE_NO_DEPENDENCIES ); assertDependencies( blueprintStateServiceImpl.getBundleMissDependencies( MOCK_BUNDLE_STOPPING_ID ), MOCK_BUNDLE_NO_DEPENDENCIES ); assertDependencies( blueprintStateServiceImpl.getBundleMissDependencies( MOCK_BUNDLE_RESOLVED_ID ), MOCK_BUNDLE_NO_DEPENDENCIES ); assertDependencies( blueprintStateServiceImpl.getBundleMissDependencies( MOCK_BUNDLE_FAILURE_ID ), MOCK_BUNDLE_FAILED_DEPENDENCIES ); assertDependencies( blueprintStateServiceImpl.getBundleMissDependencies( MOCK_BUNDLE_GRACE_PERIOD_ID ), MOCK_BUNDLE_GRACE_PERIOD_DEPENDENCIES ); assertDependencies( blueprintStateServiceImpl.getBundleMissDependencies( MOCK_BUNDLE_WAITING_ID ), MOCK_BUNDLE_WAITING_DEPENDENCIES ); assertDependencies( blueprintStateServiceImpl.getBundleMissDependencies( MOCK_BUNDLE_NO_BLUEPRINT_ID ), MOCK_BUNDLE_NO_DEPENDENCIES ); bundleGracePeriodToFailed(); assertDependencies( blueprintStateServiceImpl.getBundleMissDependencies( MOCK_BUNDLE_GRACE_PERIOD_ID ), MOCK_BUNDLE_FAILED_DEPENDENCIES ); }