@Bean("MigrationSteps")
  public MigrationSteps provide(InternalMigrationStepRegistry migrationStepRegistry, DbVersion... dbVersions) {
    Arrays.stream(dbVersions).forEach(dbVersion -> dbVersion.addSteps(migrationStepRegistry));
    return migrationStepRegistry.build();
  }
@Test
  public void provide_throws_ISE_with_registry_build_throws_ISE_because_it_is_empty() {
    IllegalStateException expected = new IllegalStateException("faking ISE because registry is empty");
    when(internalMigrationStepRegistry.build()).thenThrow(expected);

    assertThatThrownBy(() -> underTest.provide(internalMigrationStepRegistry))
      .isInstanceOf(expected.getClass())
      .hasMessage(expected.getMessage());
  }