### Question:
FileSystemBundlePersistenceProvider implements BundlePersistenceProvider { @Override public synchronized void getBundleVersionContent(final BundleVersionCoordinate versionCoordinate, final OutputStream outputStream) throws BundlePersistenceException { final File bundleFile = getBundleFile(versionCoordinate); if (LOGGER.isDebugEnabled()) { LOGGER.debug("Reading extension bundle from {}", new Object[]{bundleFile.getAbsolutePath()}); } try (final InputStream in = new FileInputStream(bundleFile); final BufferedInputStream bufIn = new BufferedInputStream(in)) { IOUtils.copy(bufIn, outputStream); outputStream.flush(); } catch (FileNotFoundException e) { throw new BundlePersistenceException("Extension bundle content was not found for: " + bundleFile.getAbsolutePath(), e); } catch (IOException e) { throw new BundlePersistenceException("Error reading extension bundle content", e); } }  @Override void onConfigured(final ProviderConfigurationContext configurationContext); @Override synchronized void createBundleVersion(final BundlePersistenceContext context, final InputStream contentStream); @Override synchronized void updateBundleVersion(final BundlePersistenceContext context, final InputStream contentStream); @Override synchronized void getBundleVersionContent(final BundleVersionCoordinate versionCoordinate, final OutputStream outputStream); @Override synchronized void deleteBundleVersion(final BundleVersionCoordinate versionCoordinate); @Override synchronized void deleteAllBundleVersions(final BundleCoordinate bundleCoordinate);  }### Answer:
@Test(expected = BundlePersistenceException.class) public void testGetWhenDoesNotExist() throws IOException { final String bucketId = "b1"; final String groupId = "g1"; final String artifactId = "a1"; final String version = "1.0.0"; final BundleVersionType type = BundleVersionType.NIFI_NAR; try (final OutputStream out = new ByteArrayOutputStream()) { final BundleVersionCoordinate versionCoordinate = getVersionCoordinate(bucketId, groupId, artifactId, version, type); fileSystemBundleProvider.getBundleVersionContent(versionCoordinate, out); Assert.fail("Should have thrown exception"); } }