package com.tobedevoured.naether.maven;

import com.tobedevoured.naether.NaetherException;
import com.tobedevoured.naether.util.Env;
import org.apache.maven.shared.invoker.InvocationResult;
import org.junit.Test;

import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;

public class InvokerTest {

    @Test
    public void execute() throws NaetherException {
        String mavenHome = System.getProperty("maven.home");
        if (mavenHome == null) {
            // Default home for Ubuntu maven deb.
            mavenHome = "/usr/share/maven";
        }
        Invoker invoker = new Invoker("target/test-repo", Env.getMavenHome());
        InvocationResult result = invoker.execute("pom.xml", "compile");
        assertThat( "Exit code should be zero", result.getExitCode(), is(0) );
        
    }
}

@@ -337,16 +337,18 @@
  %7B%0A%0A    
+//
 @Test%0A  
@@ -397,16 +397,27 @@
 ption %7B%0A
+        /*%0A
         
@@ -845,16 +845,18 @@
         
+*/
 %0A    %7D%0A%7D

Update InvokerTest.java