### Question:
ManagedResourceHandler implements ResourceHandler { protected File getOutputDirectory( Bundle blueprintBundle ) { File managedResourcesFolder = managedResourceProvider.getManagedResourceFolder(); File to = Paths.get( managedResourcesFolder.getAbsolutePath(), blueprintBundle.getSymbolicName() ).toFile(); if ( !to.exists() ) { to.mkdirs(); } return to; }  void setManagedResourceProvider( ResourceProvider resourceProvider ); @Override boolean hasManagedResources( Bundle bundle ); @Override void handleManagedResources( Bundle blueprintBundle ); static String BUNDLE_MANAGED_RESOURCES_DIR; }### Answer:
@Test public void testGetOutputDirectory() { assertFalse( expectedOutputDirectory.exists() ); File result = resourceHandler.getOutputDirectory( bundle ); assertEquals( expectedOutputDirectory.getAbsoluteFile(), result.getAbsoluteFile() ); assertTrue( expectedOutputDirectory.exists() ); }