package com.airhacks.nano;

import java.nio.file.Path;
import java.nio.file.Paths;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Test;

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

    @Test
    public void extractContext() {
        Path path = Paths.get("./src/test/js/hello/duke.js");
        String actual = Contexts.extractContext(path);
        assertThat(actual, is("/src/test/js/hello/duke"));
    }

}

@@ -425,55 +425,157 @@
     
-assertThat(actual, is(%22/src/test/js/hello/duke%22
+Path actualPath = Paths.get(actual);%0A        Path expectedPath = Paths.get(%22/src/test/js/hello/duke%22);%0A        assertThat(actualPath, is(expectedPath
 ));%0A

Test compares path objects, not string -> should be OS-independent