@Test
public void testCreateSuccessfully() throws IOException {

    final BundleVersionType type = BundleVersionType.NIFI_NAR;
    // first version in b1
    final String content1 = "g1-a1-1.0.0";
    final BundleVersionCoordinate versionCoordinate1 = getVersionCoordinate("b1", "g1", "a1", "1.0.0", type);
    createBundleVersion(fileSystemBundleProvider, versionCoordinate1 , content1);
    verifyBundleVersion(bundleStorageDir, versionCoordinate1, content1);
    // second version in b1
    final String content2 = "g1-a1-1.1.0";
    final BundleVersionCoordinate versionCoordinate2 = getVersionCoordinate("b1", "g1", "a1", "1.1.0", type);
    createBundleVersion(fileSystemBundleProvider, versionCoordinate2, content2);
    verifyBundleVersion(bundleStorageDir, versionCoordinate2, content2);
    // same bundle but in b2
    final String content3 = "g1-a1-1.1.0";
    final BundleVersionCoordinate versionCoordinate3 = getVersionCoordinate("b2", "g1", "a1", "1.1.0", type);
    createBundleVersion(fileSystemBundleProvider, versionCoordinate3, content3);
    verifyBundleVersion(bundleStorageDir, versionCoordinate3, content2);
}