@Test
void migrate() {

    assertThatThrownBy(() -> migration.migrate(search -> {
        throw new RuntimeException("migration error");
    })).isInstanceOf(RuntimeException.class)
       .hasMessageContaining("migration");
}