@Test
  public void inBootstrapAndCompleteBootstrapTest() throws Exception {
    store.shutdown();
    File testDir = createTempDirectory("testStoreDir-" + storeId);
    testDir.deleteOnExit();
    MockReplicaId testReplica = getMockReplicaId(testDir.getAbsolutePath());
    BlobStore blobStore = createBlobStore(testReplica);
    blobStore.start();
    StoreConfig config = new StoreConfig(new VerifiableProperties(properties));
    // create a bootstrap file
    File bootstrapFile = new File(testReplica.getReplicaPath(),  config.storeBootstrapInProgressFile);
    assertTrue("Couldn't create a bootstrap file", bootstrapFile.createNewFile());
    assertTrue("Store should be in bootstrap state", blobStore.isBootstrapInProgress());
    blobStore.completeBootstrap();
    assertFalse("Bootstrap file should be deleted", bootstrapFile.exists());
  }
test store in bootstrap and store completes bootstrap behaviors.
@throws Exception
ambry-store/src/test/java/com/github/ambry/store/BlobStoreTest.java