### Question:
ManagedResourceProvider implements ResourceProvider { @Override public File provideFolder( Bundle bundle, String relativePath ) { File folder = getAbsoluteFile( bundle, relativePath ); return validateFolder( folder ); }  void setBundleContext( BundleContext bundleContext ); void init(); @Override File getManagedResourceFolder(); @Override File provideFolder( Bundle bundle, String relativePath ); @Override File provideFolder( String bundleName, String relativePath ); @Override File provideFile( Bundle bundle, String relativePath ); @Override File provideFile( String bundleName, String relativePath ); static String MANAGED_RESOURCES_DIR; }### Answer:
@Test public void provideFolderTest() { Bundle nullBundle = null; assertNull( resourceProvider.provideFolder( nullBundle, null ) ); File providedFolder = resourceProvider.provideFolder( bundle, relativePath ); assertTrue( providedFolder.getAbsolutePath().contains( expectedRelativePath ) ); providedFolder = resourceProvider.provideFolder( bundleName, relativePath ); assertTrue( providedFolder.getAbsolutePath().contains( expectedRelativePath ) ); }