@Test
public void shouldApplyUndoScriptsInReverseOrder() throws Exception {

	when(appliedChangesProvider.getAppliedChanges()).thenReturn(Collections.<Long>emptyList());
	controller.processChangeScripts(Long.MAX_VALUE);
       assertThat(undoApplier.changeScripts.size(), is(3));
	assertThat(undoApplier.changeScripts.get(0), is(change3));
	assertThat(undoApplier.changeScripts.get(1), is(change2));
	assertThat(undoApplier.changeScripts.get(2), is(change1));
}