// Path: headlands/src/main/java/com/airhacks/headlands/processors/control/CacheProcessor.java
// public interface CacheProcessor {
// 
//     Map<String, String> process(Cache<String, String> cache, Map<String, String> empty);
// 
// }


import com.airhacks.headlands.processors.control.CacheProcessor;
import javax.cache.processor.EntryProcessor;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertThat;
import org.junit.Before;
import org.junit.Test;
package com.airhacks.headlands.engine.control;


/**
 *
 * @author airhacks.com
 */
public class NashornEngineTest {

    private NashornEngine cut;

    @Before
    public void init() {
        this.cut = new NashornEngine();
        this.cut.initializeEngine();
    }

    @Test
    public void createProcessorFromEmptyScript() {
// Path: headlands/src/main/java/com/airhacks/headlands/processors/control/CacheProcessor.java
// public interface CacheProcessor {
// 
//     Map<String, String> process(Cache<String, String> cache, Map<String, String> empty);
// 
// }


// Path: headlands/src/test/java/com/airhacks/headlands/engine/control/NashornEngineTest.java
import com.airhacks.headlands.processors.control.CacheProcessor;
import javax.cache.processor.EntryProcessor;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertThat;
import org.junit.Before;
import org.junit.Test;

package com.airhacks.headlands.engine.control;


/**
 *
 * @author airhacks.com
 */
public class NashornEngineTest {

    private NashornEngine cut;

    @Before
    public void init() {
        this.cut = new NashornEngine();
        this.cut.initializeEngine();
    }

    @Test
    public void createProcessorFromEmptyScript() {
        CacheProcessor invalid = this.cut.evalScript("", CacheProcessor.class);