	@Test
	public void shouldResolveNextMigration() throws Exception {

		// given
		File migrationsDir = tempFolder.newFolder();
		migrationsDir.toPath().resolve("v1__jpa2ddl.sql").toFile().createNewFile();
		migrationsDir.toPath().resolve("v2__my_description.sql").toFile().createNewFile();

		// when
		File file = FileResolver.resolveNextMigrationFile(migrationsDir);

		// then
		assertThat(file.toPath()).isEqualTo(migrationsDir.toPath().resolve("v3__jpa2ddl.sql"));
	}