@Test
public void invalidScriptMustThrowException() {

    URL url = TestURLBuilder.forContent(script("throw 'invalid script';")).build();
    DefaultDockerImageMigrationHandler migrationHandler = new DefaultDockerImageMigrationHandler(url);
    assertThatExceptionOfType(IllegalArgumentException.class).
            isThrownBy(() -> migrationHandler.performMigration(TEST_NODE));
}