@Test
public void shouldRethrowSqlExceptionsWithInformationAboutWhatStringFailed() throws Exception {

	when(splitter.split("split; content")).thenReturn(Arrays.asList("split", "content"));
	ChangeScript script = new StubChangeScript(1, "script", "split; content");
	doThrow(new SQLException("dummy exception")).when(queryExecuter).execute("split");
	try {
		applier.applyChangeScript(script);
		fail("exception expected");
	} catch (ChangeScriptFailedException e) {
		assertThat(e.getExecutedSql(), is("split"));
		assertThat(e.getScript(), is(script));
	}
	verify(queryExecuter, never()).execute("content");
}