@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");
    }
}