@Test
public void testCreateScript() throws Exception {

    JsonValue config = parseJsonString("{\"maxRetries\":0,\"postRetryAction\":{\"script\":{\"type\":\"text/javascript\",\"file\":\"script/onSyncFailure.js\"}}}");
    SyncFailureHandler handler = factory.create(config);
    Assert.assertTrue(handler instanceof ScriptedSyncFailureHandler);
}